[Ajuda] Crash quando abastece - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Crash quando abastece (
/showthread.php?tid=497250)
Crash quando abastece -
HHwilliamHH - 25.02.2014
galera quando a pessoa aperta H ou /abastecer ela toma Crash e nao estou conseguindo arrumar. me ajudem
Код HTML:
if(strcmp(cmd, "/abastecer", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(!IsPlayerInAnyVehicle(playerid))
return SendClientMessage(playerid,COLOR_RED," Vocк nгo estб em um veнculo!");
new vid = GetPlayerVehicleID(playerid);
if(Gas[vid] >= 100)
return SendClientMessage(playerid,COLOR_RED,"POSTO: O tanque jб estб cheio.");
if(IsAtGasStation(playerid))
{
GameTextForPlayer(playerid,"~g~P~y~O~b~STO~n~~w~Reabastecendo, Aguarde...~",3000,3);
SetTimer("Fillup",RefuelWait,0);
Controle(playerid, 0);
Refueling[playerid] = 1;
}
else
{
SendClientMessage(playerid,COLOR_GREY," Vocк nгo estб em um Posto de Gasolina");
}
}
return true;
}
Re: Crash quando abastece -
PT - 25.02.2014
muda
pawn Код:
GameTextForPlayer(playerid,"~g~P~y~O~b~STO~n~~w~Reabastecendo, Aguarde...~",3000,3);
para
pawn Код:
GameTextForPlayer(playerid,"~g~P~y~O~b~STO~n~~w~Reabastecendo, Aguarde...",3000,3);
Re: Crash quando abastece -
brunox - 25.02.2014
pawn Код:
GameTextForPlayer(playerid,"~g~P~y~O~b~STO~n~~w~Reabastecendo, Aguarde...~",3000,3);
tem um ~ a mais no fim й sу retirar e deixar assim:
pawn Код:
GameTextForPlayer(playerid,"~g~P~y~O~b~STO~n~~w~Reabastecendo, Aguarde...",3000,3);