[Pomoc] newstate error

Započeo [RL:RP]Hoppe, Avgust 31, 2013, 13:51:02 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: moja
Detaljan opis problema:Mod od 0\gamemodes\Untitled.pwn(2630) : error 017: undefined symbol "newstate"
Dio skripte: if(newstate == PLAYER_STATE_DRIVER)
{
    if(VehInSystem[ GetPlayerVehicleID(playerid) ] == 1)
    {
        new EVSystemID = VehEVID[ GetPlayerVehicleID(playerid) ];

        if(!strfind(EvoVehicles[ EVSystemID ][EVOwner], "Showroom", true))
        {
    new SRN[30];
strmid(SRN, EvoVehicles[ EVSystemID ][EVOwner], 8, strlen(EvoVehicles[ EVSystemID ][EVOwner]), 30);
            SelectedSR[playerid] = strval(SRN);

new DiaString[512];
format(DiaString, 512, "{FFFFFF}Model\t{ADFF2F}%s\n", VehNames[ EvoVehicles[ EVSystemID ][EVModel]-400 ]);
format(DiaString, 512, "%s{FFFFFF}Price\t{ADFF2F}%d$\n", DiaString, EvoVehicles[ EVSystemID ][EVPrice]);
format(DiaString, 512, "%s{FFFFFF}Do you want buy this vehicle?", DiaString);

ShowPlayerDialog(playerid, DIALOG_SRVEH, DIALOG_STYLE_MSGBOX, "{ADFF2F}Showroom", DiaString, "Yes", "No");
        }else{
            if(!strcmp(EvoVehicles[ EVSystemID ][EVOwner], "-", true))
            {
new DiaString[512];
format(DiaString, 512, "{FFFFFF}Model\t{ADFF2F}%s\n", VehNames[ EvoVehicles[ EVSystemID ][EVModel]-400 ]);
format(DiaString, 512, "%s{FFFFFF}Price\t{ADFF2F}%d$\n", DiaString, EvoVehicles[ EVSystemID ][EVPrice]);
format(DiaString, 512, "%s{FFFFFF}Do you want buy this vehicle?", DiaString);

ShowPlayerDialog(playerid, DIALOG_BUY_VEHICLE, DIALOG_STYLE_MSGBOX, "{ADFF2F}Vehicle for Sale", DiaString, "Yes", "No");
            }else{
            if(!strcmp(EvoVehicles[ EVSystemID ][EVOwner], GetName(playerid), true))
            {
INFO(playerid, "You can manage your vehicle with /myveh command.");
}
            }
}
        }
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):


to ti ide pod
public OnPlayerStateChange(playerid, newstate, oldstate)
69

pa tu mi i stoji

Edit: Reseno:)) moze lock
Poslednja Izmena: Avgust 31, 2013, 15:10:31 POSLE PODNE od Hoppe