14.02.2012, 21:49
Comando:
ERRO:
PHP код:
if(strcmp(cmd, "/desligarv",true) == 0) {
new veiculoid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid)){
GetVehicleParamsEx(veiculoid,engine,lights,alarm,doors,bonnet,boot,objective);
if(engine == VEHICLE_PARAMS_OFF){
SendClientMessage(playerid,0xFFFF00AA,"O veнculo jб estб desligado!");
return 1;
}else{
SetVehicleParamsEx(veiculoid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
SendClientMessage(playerid,0x63AFF00A,"Veнculo {0xFFFF00AA}ligado.");
}
}else{
SendClientMessage(playerid,0xFFFF00AA,"Vocк nгo estб em um veiculo!");
}
return 1;
if(strcmp(cmdtext, "/ajudacarro", true) ==0)
{
SendClientMessage(playerid, 0xFFFF00AA, "Ajuda Carro:");
SendClientMessage(playerid, 0x33AA33AA, "___________________________");
SendClientMessage(playerid, 0xFFFFFFAA, "/ligarv");
SendClientMessage(playerid, 0xFFFFFFAA, "/desligarv");
SendClientMessage(playerid, 0x33AA33AA, "___________________________");
}
return 0;
}
PHP код:
C:\Users\Windows\Desktop\Meu Server\Meu Server\filterscripts\hts_ldm.pwn(50) : warning 225: unreachable code
C:\Users\Windows\Desktop\Meu Server\Meu Server\filterscripts\hts_ldm.pwn(50) : warning 217: loose indentation
C:\Users\Windows\Desktop\Meu Server\Meu Server\filterscripts\hts_ldm.pwn(62) : error 030: compound statement not closed at the end of file (started at line 14)