05.05.2011, 10:14
Changed it, but still getting the same errors:
Код:
C:\Users\wesley.PC_van_Kelsey\Desktop\SAMP_Flight\filterscripts\LuxAdmin.pwn(7663) : error 008: must be a constant expression; assumed zero C:\Users\wesley.PC_van_Kelsey\Desktop\SAMP_Flight\filterscripts\LuxAdmin.pwn(7663) : error 008: must be a constant expression; assumed zero C:\Users\wesley.PC_van_Kelsey\Desktop\SAMP_Flight\filterscripts\LuxAdmin.pwn(7663) : error 036: empty statement C:\Users\wesley.PC_van_Kelsey\Desktop\SAMP_Flight\filterscripts\LuxAdmin.pwn(7663) : 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 Код:
if(newstate == PLAYER_STATE_DRIVER)
{
new PlayerVehicle[playerid] = GetPlayerVehicleID(playerid); //line 7663
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;
}