[Pomoc] newstate error

Započeo [RL:RP]Hoppe
31. Avg. 2013. Zaključano
222
pregleda
3
postova
Hoppe
3
Hustler
31. Avg. 2013.
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 ], "Showroom", true))
        {
    new SRN;
strmid(SRN, EvoVehicles[ EVSystemID ], 8, strlen(EvoVehicles[ EVSystemID ]), 30);
            SelectedSR = strval(SRN);

new DiaString;
format(DiaString, 512, "{FFFFFF}Model\t{ADFF2F}%s\n", VehNames[ EvoVehicles[ EVSystemID ]-400 ]);
format(DiaString, 512, "%s{FFFFFF}Price\t{ADFF2F}%d$\n", DiaString, EvoVehicles[ EVSystemID ]);
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 ], "-", true))
            {
new DiaString;
format(DiaString, 512, "{FFFFFF}Model\t{ADFF2F}%s\n", VehNames[ EvoVehicles[ EVSystemID ]-400 ]);
format(DiaString, 512, "%s{FFFFFF}Price\t{ADFF2F}%d$\n", DiaString, EvoVehicles[ EVSystemID ]);
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 ], GetName(playerid), true))
            {
INFO(playerid, "You can manage your vehicle with /myveh command.");
}
            }
}
        }
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):
James_SmithXDl
6
OG Legend
31. Avg. 2013.
to ti ide pod
public OnPlayerStateChange(playerid, newstate, oldstate)
Hoppe
3
Hustler
31. Avg. 2013.
pa tu mi i stoji

Edit: Reseno🙂) moze lock

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha