21.11.2016, 01:37
Код:
C:\Users\Jo\Documents\South Central RP\gamemodes\roleplay.pwn(32071) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Код:
CMD:motor(playerid, params[]) { new vehicleid = GetPlayerVehicleID(playerid); static id = -1; if (!IsEngineVehicle(vehicleid)) return SendErrorMessage(playerid, "Vocк esta fora de um veiculo."); if ((id = Car_Nearest(playerid)) != -1) { if (Car_IsOwner(playerid, id) || (PlayerData[playerid][pFaction] != -1 && CarData[id][carFaction] == GetFactionType(playerid)) { // 32071 } else return SendErrorMessage(playerid, "Vocк nгo tem a chave desse veiculo."); } if (GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendErrorMessage(playerid, "Vocк precissa ser o motorista para usar esse comando."); if (CoreVehicles[vehicleid][vehFuel] < 1) return SendErrorMessage(playerid, "O tanque de combustнvel estб vazio."); if (ReturnVehicleHealth(vehicleid) <= 300) return SendErrorMessage(playerid, "Esse veiculo nгo tem condiзхes de uso."); switch (GetEngineStatus(vehicleid)) { case false: { SetEngineStatus(vehicleid, true); ShowPlayerFooter(playerid, "Vocк ~g~ligou~w~ o motor!"); SendNearbyMessage(playerid, 30.0, COLOR_PURPLE, "** %s gira a chave na igniзгo e liga o motor.", ReturnName(playerid, 0)); } case true: { SetEngineStatus(vehicleid, false); ShowPlayerFooter(playerid, "Vocк ~r~desligou~w~ o motor!"); SendNearbyMessage(playerid, 30.0, COLOR_PURPLE, "** %s Gira a chave na igniзгo e desliga o motor.", ReturnName(playerid, 0)); } } return 1; }