30.12.2018, 13:11
Agora esta dando estes erros
Nessa parte da minha GM
Quote:
C:\Users\Krosmo Stewart\Desktop\State San Andreas RP\gamemodes\SSA-RP.pwn(536) : error 029: invalid expression, assumed zero C:\Users\Krosmo Stewart\Desktop\State San Andreas RP\gamemodes\SSA-RP.pwn(536) : error 029: invalid expression, assumed zero C:\Users\Krosmo Stewart\Desktop\State San Andreas RP\gamemodes\SSA-RP.pwn(536) : warning 215: expression has no effect C:\Users\Krosmo Stewart\Desktop\State San Andreas RP\gamemodes\SSA-RP.pwn(536) : error 001: expected token: ";", but found "]" C:\Users\Krosmo Stewart\Desktop\State San Andreas RP\gamemodes\SSA-RP.pwn(536) : fatal error 107: too many error messages on one line |
Code:
public OnPlayerEnterCheckpoint(playerid) { if(Rotas[playerid] != 1) { new Truck = GetPlayerVehicleID(playerid); if(GetVehicleModel(Truck) != 403) return SendClientMessage(playerid, -1, "{FF0040}Esse nгo й o caminhгo da empresa."); if(IsTrailerAttachedToVehicle(Truck)) return SendClientMessage(playerid, -1, "{FF0040}Vocк nгo carregou seu caminhгo!"); if(IsPlayerInRangeOfPoint(playerid, 10.0, -1021.5939, -664.9120, 32.0078)) return SendClientMessage(playerid, Azul-Marinho, "Nгo estб na area de carregamento"); new trailerc = GetVehicleTrailer(Truck); DetachTrailerFromVehicle(trailerc); SetVehicleToRespawn(trailerc); SendClientMessage(playerid, -1, "{FF0000}Caminhгo descarregado no deposito de drogas"); SendClientMessage(playerid, -1, "{FF0000}Pagamento: {00ff00}$2000"); GivePlayerMoney(playerid, 2000); RemovePlayerMapIcon(playerid, 24); DisablePlayerCheckpoint(playerid); Rotas[playerid] = 0; } else if(Rotas[playerid] != 2) { new Truck = GetPlayerVehicleID(playerid); if(GetVehicleModel(Truck) != 403) return SendClientMessage(playerid, -1, "{FF0040}Esse nгo й o caminhгo da empresa."); if(IsTrailerAttachedToVehicle(Truck)) return SendClientMessage(playerid, -1, "{FF0040}Vocк nгo carregou seu caminhгo!"); if(IsPlayerInRangeOfPoint(playerid, 10.0, 289.8005,2548.8125,16.8202)) return SendClientMessage(playerid, Azul-Marinho, "Nгo estб na area de carregamento"); new trailerc = GetVehicleTrailer(Truck); DetachTrailerFromVehicle(trailerc); SetVehicleToRespawn(trailerc); SendClientMessage(playerid, -1, "{FF0000}Caminhгo descarregado no galpгo de armas"); SendClientMessage(playerid, -1, "{FF0000}Pagamento: {00ff00}$2000"); GivePlayerMoney(playerid, 2000); RemovePlayerMapIcon(playerid, 24); DisablePlayerCheckpoint(playerid); Rotas[playerid] = 0; } return 1; }