[POMOC]EROR

Započeo mayk, Oktobar 02, 2011, 15:12:17 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim://
Detaljan opis problema:epa ja si zema novi moi kordinati za /food i mi pokazue eror
Dio skripte:
C:\Users\Next\Desktop\[cenzura] RPG v0.2.0\gamemodes\[cenzura].pwn(17207) : error 001: expected token: ",", but found "{" = EROROT
if(strcmp(cmd, "/food", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if (PlayerToPoint(2.0, playerid,1563.2455,-1723.9128,13.5469) || PlayerToPoint(2.0, playerid,1437.4901,-1879.4882,13.5469) || PlayerToPoint(2.0, playerid,1216.5372,-1812.6840,16.5938 || PlayerToPoint(2.0, playerid,1214.3579,-1326.5044,13.5675 || PlayerToPoint(2.0, playerid,1365.1884,-1285.6677,13.5469 || PlayerToPoint(2.0, playerid,1458.7878,-1046.7935,23.8281))
        {
            ShowPlayerDialog(playerid, FOODMENU, DIALOG_STYLE_LIST, "Food","Hotdog\nBurger\nSprunk ", "Kupi", "Otkazi");
        }
        else
        {
SendClientMessage(playerid, COLOR_LIGHTRED, "Ne ste vo kombe za hotdog !");
}
        }
        return 1;
    }
= KOMANDATA
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Poslednja Izmena: Oktobar 02, 2011, 15:12:45 POSLE PODNE od mayk

Mislim da ide ovako..
PlayerToPoint(2.0, playerid,1365.1884,-1285.6677,13.5469) // a tebi fali ")" na svakoj provjeri...
zagrade ti fale na 3,4,5 provjeri :)

EDIT::
probaj ovu komandu
if(strcmp(cmd, "/food", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if (PlayerToPoint(2.0, playerid,1563.2455,-1723.9128,13.5469) || PlayerToPoint(2.0, playerid,1437.4901,-1879.4882,13.5469) || PlayerToPoint(2.0, playerid,1216.5372,-1812.6840,16.5938) || PlayerToPoint(2.0, playerid,1214.3579,-1326.5044,13.5675) || PlayerToPoint(2.0, playerid,1365.1884,-1285.6677,13.5469) || PlayerToPoint(2.0, playerid,1458.7878,-1046.7935,23.8281))
        {
            ShowPlayerDialog(playerid, FOODMENU, DIALOG_STYLE_LIST, "Food","Hotdog\nBurger\nSprunk ", "Kupi", "Otkazi");
        }
        else
        {
SendClientMessage(playerid, COLOR_LIGHTRED, "Ne ste vo kombe za hotdog !");
}
        }
        return 1;
    }
Poslednja Izmena: Oktobar 02, 2011, 15:26:40 POSLE PODNE od Marijo B. - K4[Я]!K3™

zavrsio sam rabotu hfala puno   ;)