19.01.2012, 17:19
Quote:
pawn Код:
|
Код:
error 017: undefined symbol "VMember"
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new newcar = GetPlayerVehicleID(playerid);
if(newstate == PLAYER_STATE_DRIVER)
{
if(VehicleInfo[newcar][vMember] == gTeam[playerid] && VehicleInfo[newcar][vRank] <= pInfo[playerid][pRank])
{
if(gTeam[playerid] != VehicleInfo[newcar][vMember])
{
SendClientMessage(playerid,COLOR_RED,"You can't drive this car");
RemovePlayerFromVehicle(playerid);
return 1;
}
}
}
return 1;
}