24.10.2015, 10:36
Код:
C:\Users\Imdaking\Desktop\New Folder (6)\Roleplay.pwn(5446) : error 017: undefined symbol "VehicleHealth" C:\Users\Imdaking\Desktop\New Folder (6)\Roleplay.pwn(5446) : warning 215: expression has no effect C:\Users\Imdaking\Desktop\New Folder (6)\Roleplay.pwn(5446) : error 001: expected token: ";", but found "]" C:\Users\Imdaking\Desktop\New Folder (6)\Roleplay.pwn(5446) : error 029: invalid expression, assumed zero C:\Users\Imdaking\Desktop\New Folder (6)\Roleplay.pwn(5446) : fatal error 107: too many error messages on one line
Код:
else if(!strcmp(params, "park", true, 4)) { if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_LIGHTRED, "You are not inside any vehicle."); new vehicleid = GetPlayerVehicleID(playerid); new id = GetVehicleID(vehicleid); if(GetPlayerVehicleAccess(playerid, id) < 1) return SendClientMessage(playerid, COLOR_LIGHTRED, "You don't have the keys for this vehicle."); new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(vehicleid, 0, 0, 0, 0, 0, 0, 0); VehicleHealth[id] = GetVehicleHealth(id, health); GetVehiclePos(VehicleID[id], VehiclePos[id][0], VehiclePos[id][1], VehiclePos[id][2]); GetVehicleZAngle(VehicleID[id], VehiclePos[id][3]); VehicleInterior[id] = GetPlayerInterior(playerid); VehicleWorld[id] = 100; SaveVehicle(id);