10.04.2009, 13:44
Why i got this error?
Heres the code:
All code:
Код:
E:\sa-mp servers\gamemodes\wwrrp.pwn(340) : error 029: invalid expression, assumed zero
pawn Код:
if(gTeam[playerid] != TEAM_COP)
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 596)
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 597)
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 598)
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 599)
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 522)
{
if(gTeam[playerid] != TEAM_COP)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, 0xFF0000AA, "You are not a cop");
return 1;
}
}
}
return 1;
}