[POMOC]Ne zeli mi compilovati skriptu

31. Okt. 2015. Zaključano
675
pregleda
25
postova
GamingNiksy
3
Hustler
31. Okt. 2015.
Skripta koju koristim:moja
Detaljan opis problema:
(60247) : error 025: function heading differs from prototype
(60248) : error 025: function heading differs from prototype

Dio skripte:

forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);//60247
public ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5)//60248
{
if(IsPlayerConnected(playerid))
{
new Float:posx, Float:posy, Float:posz;
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && (GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i)))
{
if(!BigEar)
{
GetPlayerPos(i, posx, posy, posz);
tempposx = (oldposx -posx);
tempposy = (oldposy -posy);
tempposz = (oldposz -posz);
if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
{
SendClientMessage(i, col1, string);
}
else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
{
SendClientMessage(i, col2, string);
}
else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
{
SendClientMessage(i, col3, string);
}
else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
{
SendClientMessage(i, col4, string);
}
else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
SendClientMessage(i, col5, string);
}
}  }
}
}
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):/
Vuzimir
5
Kingpin
31. Okt. 2015.
mhm, daj mi par linija iznad tog?
GamingNiksy
3
Hustler
31. Okt. 2015.
Vuzimir wrote on October 31, 2015, 8:44 am:
mhm, daj mi par linija iznad tog?
	switch (dialogid)
    {
case DIALOG_REGISTER:
    {
if(!response) return Kick(playerid);
    if(response)
{
{
if(strlen(inputtext) < MIN_DUZINA_LOZINKE)
{
    new regstring, regname; GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),""BELA"________________________________________________\n\n{FF6600}Dobrodosao na Balkan Night RolePlay\n\nVase Ime i Prezime: {FF6600}%s\n"BELA"Vas korisnicki racun nije registrovan...\nUpisite vasu lozinku da bi ste se registrovali\n\nLozinka: {FF6600}Min 6/Max 10 znakova\n\n"BELA"________________________________________________",regname);
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,""BELA"Registracija",regstring,"Registracija","Izlaz");
SCM(playerid,-1,"[BN:RP] "ZUTA"Lozinka mora imati minimum 6 znakova, a maximum 14 znakova!");
}
else if(strlen(inputtext) > MAX_DUZINA_LOZINKE)
{
    new regstring, regname; GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),""BELA"________________________________________________\n\n{FF6600}Dobrodosao na Balkan Night RolePlay\n\nVase Ime i Prezime: {FF6600}%s\n"BELA"Vas korisnicki racun nije registrovan...\nUpisite vasu lozinku da bi ste se registrovali\n\nLozinka: {FF6600}Min 6/Max 10 znakova\n\n"BELA"________________________________________________",regname);
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,""BELA"Registracija",regstring,"Registracija","Izlaz");
SCM(playerid,-1,"[BN:RP] "ZUTA"Lozinka mora imati minimum 6 znakova, a maximum 14 znakova!");
}
else if(strlen(inputtext) >= MIN_DUZINA_LOZINKE && strlen(inputtext) <= MAX_DUZINA_LOZINKE)
{
new INI:File = INI_Open(Korisnici(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Password",udb_hash(inputtext));
INI_WriteInt(File,"NovacDzep",0);
    INI_WriteInt(File,"Admin",0);
INI_WriteInt(File,"Ubistava",0);
INI_WriteInt(File,"Smrti",0);
    INI_WriteInt(File,"Level",1);
INI_WriteInt(File,"GameMaster",0);
INI_WriteInt(File,"Skin",0);
    INI_WriteInt(File,"Godine",0);
INI_WriteInt(File,"Drzava",0);
INI_WriteInt(File,"Spol",0);
    INI_WriteInt(File,"Tutorial",0);
INI_WriteInt(File,"Email",0);
INI_WriteInt(File,"Lider",0);
    INI_WriteInt(File,"Clan",0);
INI_WriteInt(File,"Rank",0);
INI_WriteInt(File,"Mutiran",0);
    INI_WriteInt(File,"NovacBanka",0);
INI_WriteInt(File,"Warn",0);
    INI_WriteInt(File,"BankovniRacun",0);
INI_WriteInt(File,"Zatvor",0);
INI_WriteInt(File,"ZatvorenVreme",0);
    INI_WriteInt(File,"Respekti",0);
INI_WriteInt(File,"UhapsenPuta",0);
INI_WriteInt(File,"Droga",0);
    INI_WriteInt(File,"Mats",0);
INI_WriteInt(File,"PayDayPoeni",0);
INI_WriteInt(File,"SatiIgre",0);
    INI_WriteInt(File,"IznosRate",0);
INI_WriteInt(File,"IznosKredita",0);
INI_WriteInt(File,"PreostaloZaOtplatu",0);
    INI_WriteInt(File,"ADozvola",0);
INI_WriteInt(File,"KamionDozvola",0);
INI_WriteInt(File,"AvionDozvola",0);
    INI_WriteInt(File,"MotorDozvola",0);
INI_WriteInt(File,"BrodDozvola",0);
INI_WriteInt(File,"GunDozvola",0);
    INI_WriteInt(File,"PosedovanjeFirme",-1);
INI_WriteInt(File,"Mobilni",0);
INI_WriteInt(File,"Imenik",0);
    INI_WriteInt(File,"MobKredit",0);
INI_WriteInt(File,"Cigare",0);
INI_WriteInt(File,"Upaljac",0);
    INI_WriteInt(File,"Kanap",0);
INI_WriteInt(File,"Naocare",0);
INI_WriteInt(File,"Sat",0);
INI_WriteInt(File,"BorbeniStil",4);
INI_WriteInt(File,"Posao",0);
INI_WriteInt(File,"Hrana",0);
INI_WriteInt(File,"PosedovanjeKuce",-1);
    INI_WriteInt(File,"ProveraSpawna",0);
    INI_WriteInt(File,"Rent",-1);
    INI_WriteInt(File,"PosedovanjeStana",-1);
    INI_WriteInt(File,"PosedovanjeVikendice",-1);
    INI_WriteInt(File,"OrgUgovor",0);
    INI_WriteInt(File,"PosaoUgovor",0);
                    INI_WriteInt(File,"PosedovanjeAuta",-1);
                    INI_WriteInt(File,"DzeparosVreme",0);
INI_WriteInt(File,"PosedovanjeMotora",-1);
INI_WriteInt(File,"Kaciga",-1);
INI_WriteInt(File,"PosedovanjeBicikla",-1);
INI_WriteInt(File,"PosedovanjeAviona",-1);
INI_WriteInt(File,"PosedovanjePlovila",-1);
INI_WriteInt(File,"DonatorBodovi", 0);
INI_WriteInt(File,"RadarskaKazna", 0);
INI_Close(File);
PlayerInfo = 1000; PlayerInfo = 20000; GivePlayerMoney(playerid, PlayerInfo);
new string;
format(string,sizeof(string),""ZUTA"[BN:RP]: "BELA"Uspesno ste se registrovali | Vasa lozinka je: "CRVENA"%s",inputtext);
SCM(playerid,-1,string); PlayerInfo = 1;
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, ""BELA"Dali ste musko ili zensko?", ""CRVENA"- "BELA"Musko\n"CRVENA"- "BELA"Zensko", "Dalje", "Odustani");
}
}
    }
}
United Extreme RolePlay
4
Shot Caller
31. Okt. 2015.

forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
public ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5)
{
if(IsPlayerConnected(playerid))
{
new Float:posx, Float:posy, Float:posz;
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
//radi = 2.0; //Trigger Radius
foreach(Player, i)
{
if(IsPlayerConnected(i) && (GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i)))
{
if(!BigEar)
{
GetPlayerPos(i, posx, posy, posz);
tempposx = (oldposx -posx);
tempposy = (oldposy -posy);
tempposz = (oldposz -posz);
//printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
if(((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
{
SCM(i, col1, string);
}
else if(((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
{
SCM(i, col2, string);
}
else if(((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
{
SCM(i, col3, string);
}
else if(((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
{
SCM(i, col4, string);
}
else if(((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
SCM(i, col5, string);
}
}
else
{
SCM(i, col1, string);
}
}
}
}//not connected
return 1;
}
GamingNiksy
3
Hustler
31. Okt. 2015.
if(!ProveraRPImena(playerid))
    {
    StatusKonekta(playerid, 2);
return 1;
    }
Ovo sam dodao greska i maknuo i opet greska!
United Extreme RolePlay
4
Shot Caller
31. Okt. 2015.
-Druže jel ti izbaciva eror na ProxDetector ?
GamingNiksy
3
Hustler
31. Okt. 2015.
United Extreme RolePlay wrote on October 31, 2015, 8:56 am:
-Druže jel ti izbaciva eror na ProxDetector ?
To nisam ni diro.
United Extreme RolePlay
4
Shot Caller
31. Okt. 2015.

//-----------------------------Ovo dodaj pod OnPlayerConnect
new name;
GetPlayerName(playerid, name, sizeof(name));
if(!IsRPName(name) || !NameValidator(playerid))
//---------------------------------------------------Ove stockove dodaj gdje su ti ostali
stock IsRPName(const name[], max_underscores = 2)
{
    new underscores = 0;
    if (name < 'A' || name > 'Z') return false; // First letter is not capital
    for(new i = 1; i < strlen(name); i++)
    {
        if(name != '_' && (name < 'A' || name > 'Z') && (name < 'a' || name > 'z')) return false; // a-zA-Z_
        if( (name >= 'A' && name <= 'Z') && (name[i - 1] != '_') ) return false; // unneeded capital letter
        if(name == '_')
        {
            underscores++;
            if(underscores > max_underscores || i == strlen(name)) return false; // More underlines than limit, or underline at the last pos
            if(name[i + 1] < 'A' || name[i + 1] > 'Z') return false; // Not a capital letter after underline
        }
    }
    if (underscores == 0) return false; // No underline detected
    return true;
}

stock NameValidator(playerid)
{
    new pname;
    GetPlayerName(playerid, pname, sizeof(pname));
    if(strfind(pname,"Mater",true) != (-1)) return 0;
    else if(strfind(pname,"Kurac",true) != (-1)) return 0;
    else if(strfind(pname,"Picka",true) != (-1)) return 0;
    else if(strfind(pname,"Retard",true) != (-1)) return 0;
    else if(strfind(pname,"Botina",true) != (-1)) return 0;
    else if(strfind(pname,"//",true) != (-1)) return 0;Ovdje dodaj sta hoces
    return 1;
}
GamingNiksy
3
Hustler
31. Okt. 2015.
United Extreme RolePlay wrote on October 31, 2015, 9:07 am:

//-----------------------------Ovo dodaj pod OnPlayerConnect
new name;
GetPlayerName(playerid, name, sizeof(name));
if(!IsRPName(name) || !NameValidator(playerid))
//---------------------------------------------------Ove stockove dodaj gdje su ti ostali
stock IsRPName(const name[], max_underscores = 2)
{
    new underscores = 0;
    if (name < 'A' || name > 'Z') return false; // First letter is not capital
    for(new i = 1; i < strlen(name); i++)
    {
        if(name != '_' && (name < 'A' || name > 'Z') && (name < 'a' || name > 'z')) return false; // a-zA-Z_
        if( (name >= 'A' && name <= 'Z') && (name[i - 1] != '_') ) return false; // unneeded capital letter
        if(name == '_')
        {
            underscores++;
            if(underscores > max_underscores || i == strlen(name)) return false; // More underlines than limit, or underline at the last pos
            if(name[i + 1] < 'A' || name[i + 1] > 'Z') return false; // Not a capital letter after underline
        }
    }
    if (underscores == 0) return false; // No underline detected
    return true;
}

stock NameValidator(playerid)
{
    new pname;
    GetPlayerName(playerid, pname, sizeof(pname));
    if(strfind(pname,"Mater",true) != (-1)) return 0;
    else if(strfind(pname,"Kurac",true) != (-1)) return 0;
    else if(strfind(pname,"Picka",true) != (-1)) return 0;
    else if(strfind(pname,"Retard",true) != (-1)) return 0;
    else if(strfind(pname,"Botina",true) != (-1)) return 0;
    else if(strfind(pname,"//",true) != (-1)) return 0;Ovdje dodaj sta hoces
    return 1;
}
Resio sam to samo u FS sam dodo da mogu samo ja s non rp imenom ali imamm ovdje eror to mi treba.
United Extreme RolePlay
4
Shot Caller
31. Okt. 2015.
Daj kod gdje ti eror izbaciva ?
GamingNiksy
3
Hustler
31. Okt. 2015.
United Extreme RolePlay wrote on October 31, 2015, 9:11 am:
Daj kod gdje ti eror izbaciva ?
(60247) : error 025: function heading differs from prototype
(6024😎 : error 025: function heading differs from prototype
United Extreme RolePlay
4
Shot Caller
31. Okt. 2015.
Kod ?
GamingNiksy
3
Hustler
31. Okt. 2015.
switch (dialogid)
    {
case DIALOG_REGISTER:
    {
if(!response) return Kick(playerid);
    if(response)
{
{
if(strlen(inputtext) < MIN_DUZINA_LOZINKE)
{
    new regstring, regname; GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),""BELA"________________________________________________\n\n{FF6600}Dobrodosao na Balkan Night RolePlay\n\nVase Ime i Prezime: {FF6600}%s\n"BELA"Vas korisnicki racun nije registrovan...\nUpisite vasu lozinku da bi ste se registrovali\n\nLozinka: {FF6600}Min 6/Max 10 znakova\n\n"BELA"________________________________________________",regname);
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,""BELA"Registracija",regstring,"Registracija","Izlaz");
SCM(playerid,-1,"[BN:RP] "ZUTA"Lozinka mora imati minimum 6 znakova, a maximum 14 znakova!");
}
else if(strlen(inputtext) > MAX_DUZINA_LOZINKE)
{
    new regstring, regname; GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),""BELA"________________________________________________\n\n{FF6600}Dobrodosao na Balkan Night RolePlay\n\nVase Ime i Prezime: {FF6600}%s\n"BELA"Vas korisnicki racun nije registrovan...\nUpisite vasu lozinku da bi ste se registrovali\n\nLozinka: {FF6600}Min 6/Max 10 znakova\n\n"BELA"________________________________________________",regname);
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,""BELA"Registracija",regstring,"Registracija","Izlaz");
SCM(playerid,-1,"[BN:RP] "ZUTA"Lozinka mora imati minimum 6 znakova, a maximum 14 znakova!");
}
else if(strlen(inputtext) >= MIN_DUZINA_LOZINKE && strlen(inputtext) <= MAX_DUZINA_LOZINKE)
{
new INI:File = INI_Open(Korisnici(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Password",udb_hash(inputtext));
INI_WriteInt(File,"NovacDzep",0);
    INI_WriteInt(File,"Admin",0);
INI_WriteInt(File,"Ubistava",0);
INI_WriteInt(File,"Smrti",0);
    INI_WriteInt(File,"Level",1);
INI_WriteInt(File,"GameMaster",0);
INI_WriteInt(File,"Skin",0);
    INI_WriteInt(File,"Godine",0);
INI_WriteInt(File,"Drzava",0);
INI_WriteInt(File,"Spol",0);
    INI_WriteInt(File,"Tutorial",0);
INI_WriteInt(File,"Email",0);
INI_WriteInt(File,"Lider",0);
    INI_WriteInt(File,"Clan",0);
INI_WriteInt(File,"Rank",0);
INI_WriteInt(File,"Mutiran",0);
    INI_WriteInt(File,"NovacBanka",0);
INI_WriteInt(File,"Warn",0);
    INI_WriteInt(File,"BankovniRacun",0);
INI_WriteInt(File,"Zatvor",0);
INI_WriteInt(File,"ZatvorenVreme",0);
    INI_WriteInt(File,"Respekti",0);
INI_WriteInt(File,"UhapsenPuta",0);
INI_WriteInt(File,"Droga",0);
    INI_WriteInt(File,"Mats",0);
INI_WriteInt(File,"PayDayPoeni",0);
INI_WriteInt(File,"SatiIgre",0);
    INI_WriteInt(File,"IznosRate",0);
INI_WriteInt(File,"IznosKredita",0);
INI_WriteInt(File,"PreostaloZaOtplatu",0);
    INI_WriteInt(File,"ADozvola",0);
INI_WriteInt(File,"KamionDozvola",0);
INI_WriteInt(File,"AvionDozvola",0);
    INI_WriteInt(File,"MotorDozvola",0);
INI_WriteInt(File,"BrodDozvola",0);
INI_WriteInt(File,"GunDozvola",0);
    INI_WriteInt(File,"PosedovanjeFirme",-1);
INI_WriteInt(File,"Mobilni",0);
INI_WriteInt(File,"Imenik",0);
    INI_WriteInt(File,"MobKredit",0);
INI_WriteInt(File,"Cigare",0);
INI_WriteInt(File,"Upaljac",0);
    INI_WriteInt(File,"Kanap",0);
INI_WriteInt(File,"Naocare",0);
INI_WriteInt(File,"Sat",0);
INI_WriteInt(File,"BorbeniStil",4);
INI_WriteInt(File,"Posao",0);
INI_WriteInt(File,"Hrana",0);
INI_WriteInt(File,"PosedovanjeKuce",-1);
    INI_WriteInt(File,"ProveraSpawna",0);
    INI_WriteInt(File,"Rent",-1);
    INI_WriteInt(File,"PosedovanjeStana",-1);
    INI_WriteInt(File,"PosedovanjeVikendice",-1);
    INI_WriteInt(File,"OrgUgovor",0);
    INI_WriteInt(File,"PosaoUgovor",0);
                    INI_WriteInt(File,"PosedovanjeAuta",-1);
                    INI_WriteInt(File,"DzeparosVreme",0);
INI_WriteInt(File,"PosedovanjeMotora",-1);
INI_WriteInt(File,"Kaciga",-1);
INI_WriteInt(File,"PosedovanjeBicikla",-1);
INI_WriteInt(File,"PosedovanjeAviona",-1);
INI_WriteInt(File,"PosedovanjePlovila",-1);
INI_WriteInt(File,"DonatorBodovi", 0);
INI_WriteInt(File,"RadarskaKazna", 0);
INI_Close(File);
PlayerInfo = 1000; PlayerInfo = 20000; GivePlayerMoney(playerid, PlayerInfo);
new string;
format(string,sizeof(string),""ZUTA"[BN:RP]: "BELA"Uspesno ste se registrovali | Vasa lozinka je: "CRVENA"%s",inputtext);
SCM(playerid,-1,string); PlayerInfo = 1;
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, ""BELA"Dali ste musko ili zensko?", ""CRVENA"- "BELA"Musko\n"CRVENA"- "BELA"Zensko", "Dalje", "Odustani");
}
}
    }
}
U zagradama je problem ovde.
United Extreme RolePlay
4
Shot Caller
31. Okt. 2015.
Da druze al nisi mi kopiro kod gdje pokaziva eror kopiraj mi gdje ti izbaciva samo to ?
GamingNiksy
3
Hustler
31. Okt. 2015.
United Extreme RolePlay wrote on October 31, 2015, 9:16 am:
Da druze al nisi mi kopiro kod gdje pokaziva eror kopiraj mi gdje ti izbaciva samo to ?
Eror pokazuje kod ProxDetector alo to je posle tog dakle tu je greska sa "}" ili "{"

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha