Getting these errors:
Код:
C:\Users\wesley.PC_van_Kelsey\Desktop\SAMP_Flight\filterscripts\LuxAdmin.pwn(7655) : error 008: must be a constant expression; assumed zero
C:\Users\wesley.PC_van_Kelsey\Desktop\SAMP_Flight\filterscripts\LuxAdmin.pwn(7655) : error 008: must be a constant expression; assumed zero
C:\Users\wesley.PC_van_Kelsey\Desktop\SAMP_Flight\filterscripts\LuxAdmin.pwn(7655) : error 036: empty statement
C:\Users\wesley.PC_van_Kelsey\Desktop\SAMP_Flight\filterscripts\LuxAdmin.pwn(7655) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
pawn Код:
new admincar;
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new PlayerVehicle[playerid] = GetPlayerVehicleID(playerid);
if(Vehicle == admincar)
{
if(pData[ playerid ][ P_LEVEL ] > 1) // change to your admin definition
{
SendClientMessage(playerid, COLOUR_BLUE, "* Welcome back Admin");
} else {
SendClientMessage(playerid, COLOUR_RED, "* Hehe oopsy, you're not an admin");
RemovePlayerFromVehicle(playerid);
}
}
}
return 1;
}
return 1;
}
public OnFilterScriptInit()
{
admincar = AddStaticVehicle(411,2990.5266,486.9260,531.8724,359.2304,0,0); // parkeergarage infernus admin
admincar = AddStaticVehicle(411,3007.0715,487.9013,531.8724,359.6575,0,0); // parkeergarage admin 2
admincar = AddStaticVehicle(562,2973.6538,485.5471,531.8053,0.8081,0,0); // parkeer garage elegy 1 admin
admincar = AddStaticVehicle(562,2983.8596,485.9474,531.8047,359.9193,0,0); // parkeergarage elegy 2 admin
admincar = AddStaticVehicle(562,3047.0522,507.4697,531.8049,270.4333,0,0); // parkeergarage elegy 3 admin
}