11.11.2011, 16:25
Quote:
H:\ftn.pwn(385) : error 025: function heading differs from prototype H:\ftn.pwn(400) : warning 209: function "OnPlayerStateChange" should return a value |
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldastate)
pawn Код:
}
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldastate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
if(GetPlayerVehicleID(playerid) >= 1 && GetPlayerVehicleID(playerid) <= 18 && Team[playerid] != TEAM_CT)
{
RemovePlayerFromVehicle(playerid);
return SendClientMessage(playerid, -1, "Voce nгo й policial!");
}
else if(GetPlayerVehicleID(playerid) >= 19 && GetPlayerVehicleID(playerid) <= 28 && Team[playerid] != TEAM_T)
{
RemovePlayerFromVehicle(playerid);
return SendClientMessage(playerid, -1, "Voce nгo й terrorista!");
}
}
// й essa aqi
}