16.01.2014, 11:15
When i add something to my CMD: spodesavanja and type it every time IG he crash and i sverv.log i have found thi
Code which i sworking before i edit him (not crash):
Code with a crash:
CMDpodesavanja(playerid, params[])
{
//#pragma unused help
//#pragma unused params
if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"BS:RP | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo[playerid][pAdmin] < 6) return SCM(playerid,-1,""SPLAVA"[BS:RP] "SIVA"Samo Vlasnik!");
if(AdminDuty[playerid] == 0) return SCM(playerid,-1,""CRVENA"[BS:RP] "SIVA"Morate biti na admin duznosti!");
SPD(playerid, DIALOG_SPODESAVANJA, DIALOG_STYLE_LIST, ""SPLAVA"Podesavanja", "Registracija (ON/OFF)\nOglas (ON/OFF)\nAdmin Pitanja (ON/OFF)\nAdmin Report (ON/OFF)\nkupovina Vozila (ON/OFF)", "Odabir", "Izlaz");
new z[13]; if(ServerInfo[isRegistracija] == 1) z = "Onemogucena"; else z = "Omogucena";
new o[13]; if(ServerInfo[isOglas] == 1) o = "Iskljucen"; else o = "Ukljucen";
new c[13]; if(ServerInfo[isPitanja] == 1) c = "Iskljucen"; else c = "Ukljucen";
new r[13]; if(ServerInfo[isReport] == 1) r = "Iskljucen"; else r = "Ukljucen";
new k[13]; if(ServerInfo[isKupovinaVozila] == 1) k = "Iskljucen"; else k = "Ukljucen";
SCMF(playerid,-1,""SPLAVA"[INFO]: "SIVA"Registracija: %s | Oglas: %s | Pitanja: %s | Report: %s | Kupovina vozila: %s",z,o,c,r,k);
return 1;
}
please help me
Код:
[13:23:51] [debug] Server crashed while executing FarkiasRP.amx [13:23:51] [debug] AMX backtrace: [13:23:51] [debug] #0 native format () [00470dd0] from samp-server.exe [13:23:51] [debug] #1 00381e88 in SCMF (playerid=0, color=-1, fstring[]=@0x0126e204 "{00C0FF}[INFO]: {C0C0C0}Regist...", ... <5 arguments>) at C:\Users\Nikola\Downloads\BSRP made by Bauer\BSRP v1.1 made by Bauer\gamemodes\FarkiasRP.pwn:35272 [13:23:51] [debug] #2 0039a8f4 in public cmd_spodesavanja (playerid=0, params[]=@0x012ec13c "") at C:\Users\Nikola\Downloads\BSRP made by Bauer\BSRP v1.1 made by Bauer\gamemodes\FarkiasRP.pwn:36716 [13:23:51] [debug] #3 native CallLocalFunction () [00471e90] from samp-server.exe [13:23:51] [debug] #4 0001d3cc in ?? (... <2 arguments>) at C:\Users\Nikola\Desktop\pawno\include\zcmd.inc:102 [13:23:51] [debug] #5 00009154 in public OnPlayerCommandText (playerid=0, cmdtext[]=@0x012ec104 "/spodesavanja") at C:\Users\Nikola\Desktop\pawno\include\YSI\y_hooks/impl.inc:929 [13:23:51] [debug] Native backtrace: [13:23:51] [debug] #0 0046c010 in ?? () from C:\Users\Nikola\Downloads\BSRP made by Bauer\BSRP v1.1 made by Bauer\samp-server.exe
Код:
CMD:spodesavanja(playerid, params[]) { //#pragma unused help //"pragma unused params if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"UP:RP | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!"); if(PlayerInfo[playerid][pAdmin] < 6) return SCM(playerid,-1,""SPLAVA"[UP:RP] "SIVA"Samo Vlasnik!"); if(AdminDuty[playerid] == 0) return SCM(playerid,-1,""CRVENA"[UP:RP] "SIVA"Morate biti na admin duznosti!"); SPD(playerid, DIALOG_SPODESAVANJA, DIALOG_STYLE_LIST, ""SPLAVA"Podesavanja", "Registracija (ON/OFF)\nOglas (ON/OFF)\nAdmin Pitanja (ON/OFF)\nAdmin Report (ON/OFF)", "Odabir", "Izlaz"); new z[13]; if(ServerInfo[isRegistracija] == 1) z = "Onemogucena"; else z = "Omogucena"; new o[13]; if(ServerInfo[isOglas] == 1) o = "Iskljucen"; else o = "Ukljucen"; new c[13]; if(ServerInfo[isPitanja] == 1) c = "Iskljucen"; else c = "Ukljucen"; new r[13]; if(ServerInfo[isReport] == 1) r = "Iskljucen"; else r = "Ukljucen"; SCMF(playerid,-1,""SPLAVA"[INFO]: "SIVA"Registracija: %s | Oglas: %s | Pitanja: %s | Report: %s",z,o,c,r); return 1; }
CMDpodesavanja(playerid, params[])
{
//#pragma unused help
//#pragma unused params
if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"BS:RP | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo[playerid][pAdmin] < 6) return SCM(playerid,-1,""SPLAVA"[BS:RP] "SIVA"Samo Vlasnik!");
if(AdminDuty[playerid] == 0) return SCM(playerid,-1,""CRVENA"[BS:RP] "SIVA"Morate biti na admin duznosti!");
SPD(playerid, DIALOG_SPODESAVANJA, DIALOG_STYLE_LIST, ""SPLAVA"Podesavanja", "Registracija (ON/OFF)\nOglas (ON/OFF)\nAdmin Pitanja (ON/OFF)\nAdmin Report (ON/OFF)\nkupovina Vozila (ON/OFF)", "Odabir", "Izlaz");
new z[13]; if(ServerInfo[isRegistracija] == 1) z = "Onemogucena"; else z = "Omogucena";
new o[13]; if(ServerInfo[isOglas] == 1) o = "Iskljucen"; else o = "Ukljucen";
new c[13]; if(ServerInfo[isPitanja] == 1) c = "Iskljucen"; else c = "Ukljucen";
new r[13]; if(ServerInfo[isReport] == 1) r = "Iskljucen"; else r = "Ukljucen";
new k[13]; if(ServerInfo[isKupovinaVozila] == 1) k = "Iskljucen"; else k = "Ukljucen";
SCMF(playerid,-1,""SPLAVA"[INFO]: "SIVA"Registracija: %s | Oglas: %s | Pitanja: %s | Report: %s | Kupovina vozila: %s",z,o,c,r,k);
return 1;
}
please help me