Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: MT3 bolinx poslato Februar 03, 2012, 00:24:31 PRE PODNE

Naslov: [pomoc] Komanda ne postoji(problem)
Poruka od: MT3 bolinx poslato Februar 03, 2012, 00:24:31 PRE PODNE
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:
Naslov: Odg: [pomoc] Komanda ne postoji(problem)
Poruka od: [TG:RP]$--L84S--$ poslato Februar 03, 2012, 11:09:56 PRE PODNE
Postavi te 2 komande..
Naslov: Odg: [pomoc] Komanda ne postoji(problem)
Poruka od: MT3 bolinx poslato Februar 03, 2012, 11:28:22 PRE PODNE
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 !");
        }
}
Naslov: Odg: [pomoc] Komanda ne postoji(problem)
Poruka od: [TG:RP]$--L84S--$ poslato Februar 03, 2012, 11:39:22 PRE PODNE
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;
}
Naslov: Odg: [pomoc] Komanda ne postoji(problem)
Poruka od: MT3 bolinx poslato Februar 03, 2012, 11:44:14 PRE PODNE
hvala, znao sam da je return u pitanju :D posto sam pocetnik pa ga nisam znao na dobro mjesto ubacit xD  :-\ sad cu testat