07.11.2012, 19:46
criei um comando para desligar os motores por que n concegui que eles nasce-cem desligados :S
deu 2 erros sera que podem me ajudar?
Comando
erros
deu 2 erros sera que podem me ajudar?
Comando
Quote:
if (strcmp("/carrosreset", cmdtext, true, 10) == 0) { new vid = GetPlayerVehicleID(playerid); new engine,lights,alarm,doors,bonnet,boot,objective; if(IsPlayerInAnyVehicle(playerid)) for(new player=0; player<MAX_PLAYERS; player++) { linha do erro - else if(EngineCarro[vid] == 1 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { new viados[MAX_PLAYER_NAME]; GetVehicleParamsEx(vid,engine,lights,alarm,doors,b onnet,boot,objective); SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,a larm,doors,bonnet,boot,objective); SendClientMessage(playerid, 0xFFFFFFAA, "Motor {E31919}Desligado!"); EngineCarro[vid] = 0; GetPlayerName(playerid, viados, sizeof(viados)); format(string, sizeof(string), "* %s Girou a chave e desligou o veiculo.", viados); ProxDetector(20.0, playerid, string, ROXO,ROXO,ROXO,ROXO,ROXO); } } return 1; } |
Quote:
C:\Users\Yuri\Desktop\GM\BID\gamemodes\BID.pwn(249 43) : error 029: invalid expression, assumed zero C:\Users\Yuri\Desktop\GM\BID\gamemodes\BID.pwn(249 43) : warning 215: expression has no effect C:\Users\Yuri\Desktop\GM\BID\gamemodes\BID.pwn(249 43) : error 001: expected token: ";", but found "if" |