29.01.2013, 08:48
Good you got your problem fixed heres the code btw
And you have str already defind as told by other ._o
Код:
if(gClass[playerid] == CLASS_PILOT)
{
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
{
new veh, Float:x,Float:y,Float:z;
veh = GetPlayerVehicleID(playerid);
if(veh > 425 || 447 || 464 || 476 || 520)
{
GetPlayerPos(playerid, x,y,z);
SetPlayerPos(playerid, x,y,z+1);
}
else return SendClientMessage(playerid, red, "[ERROR]: You need to be a pilot to fly this vehicle");
return 1;
}
}

