Skripta koju koristim:CL:
Detaljan opis problema:Znaci pisem /count i ono pocne odbrojavat al kaze da komanda ne postoji :S isto tako za /unistitour, on unisti vozila i kaze da ne postoji komanda :S:
Dio skripte:ak bude bilo potrebno:
Neke slike/video za lakse dobivanje pomoci(neobavezno): http://www.zaslike.com/files/56dlvfy49adc1pcd674v.jpg:
Postavi te 2 komande..
evo sad se to pocelo dogadjat i sa /gotolist :S
if(strcmp(cmd, "/gotolist", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 2)
{
SendClientMessage(playerid, COLOR_GRAD2, "Lokacije: gotols, gotosf, gotolv, gotobolnica, gotoburg");
SendClientMessage(playerid, COLOR_GRAD2, "Lokacije: gotobank, gotospawn, gotostunt");
SendClientMessage(playerid, COLOR_GRAD2, "Lokacije: gotocross, gotocross1, gotohell, gotohell1");
SendClientMessage(playerid, COLOR_GRAD2, "Lokacije: gotorace, gotomonster, gotosurvivor");
}
else
{
SendClientMessage(playerid, COLOR_WHITE, " Niste ovlasteni da koristite tu komandu !");
}
}
Fix :
if(strcmp(cmd, "/gotolist", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 2)
{
SendClientMessage(playerid, COLOR_GRAD2, "Lokacije: gotols, gotosf, gotolv, gotobolnica, gotoburg");
SendClientMessage(playerid, COLOR_GRAD2, "Lokacije: gotobank, gotospawn, gotostunt");
SendClientMessage(playerid, COLOR_GRAD2, "Lokacije: gotocross, gotocross1, gotohell, gotohell1");
SendClientMessage(playerid, COLOR_GRAD2, "Lokacije: gotorace, gotomonster, gotosurvivor");
}
else
{
SendClientMessage(playerid, COLOR_WHITE, " Niste ovlasteni da koristite tu komandu !");
}
return 1;
}
hvala, znao sam da je return u pitanju :D posto sam pocetnik pa ga nisam znao na dobro mjesto ubacit xD :-\ sad cu testat