26.12.2018, 23:11
Quote:
Se alguem souber me explicar oq ta de errado eu agradeзo.
O comando: Code:
CMD:carregar(playerid, params[]) { new Truck = GetPlayerVehicleID(playerid); if(!GetVehicleModel(Truck) == 403) return SendClientMessage(playerid, -1, "Esse nгo й o caminhгo da empresa."); if(!IsPlayerInRangeOfPoint(playerid, 20.0, -1729.3949,14.3215,3.5547)) return SendClientMessage(playerid, -1, "{FF0040}Vocк nгo esta na area de carregamento!"); RemovePlayerMapIcon(playerid, 51); return ShowPlayerDialog(playerid, Rotas, DIALOG_STYLE_LIST, "Rotas", "Deposito de drogas de LS \nGalpгo de armas de LV", "Aceitar", "Rejeitar"); return 1; } |
PHP Code:
if(!GetVehicleModel(Truck) == 403) return SendClientMessage(playerid, -1, "Esse nгo й o caminhгo da empresa.");
PHP Code:
if(GetVehicleModel(Truck) != 403)
return SendClientMessage(playerid, -1, "Esse nгo й o caminhгo da empresa.");
Code:
CMD:carregar(playerid, params[]) { new Truck = GetPlayerVehicleID(playerid); if(GetVehicleModel(Truck) != 403) return SendClientMessage(playerid, -1, "Esse nгo й o caminhгo da empresa."); if(!IsPlayerInRangeOfPoint(playerid, 20.0, -1729.3949,14.3215,3.5547)) return SendClientMessage(playerid, -1, "{FF0040}Vocк nгo esta na area de carregamento!"); RemovePlayerMapIcon(playerid, 51); ShowPlayerDialog(playerid, Rotas, DIALOG_STYLE_LIST, "Rotas", "Deposito de drogas de LS \nGalpгo de armas de LV", "Aceitar", "Rejeitar"); return 1; }