SA-MP Forums Archive
[Ajuda] TextDraw nгo desaparece. - 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] TextDraw nгo desaparece. (/showthread.php?tid=463847)



TextDraw nгo desaparece. - willttoonn - 14.09.2013

Eu tou tentando fazer com que a TextDraw do combustivel quando o player sai do veiculo ela desaparecer, mas ela nгo some..

pawn Код:
public OnFilterScriptInit()
{
himessage = TextDrawCreate(547.000000, 435.000000, "");
    TextDrawAlignment(himessage, 2);
    TextDrawLetterSize(himessage, 0.230000, 0.899999);
return 1;
}
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new newtext[200];
    format(newtext, sizeof(newtext), "Combustivel: %d", floatround(Fuel[vehicleid]));
    TextDrawSetString(himessage, newtext);
    TextDrawShowForPlayer(playerid, himessage);
    return 1;
}
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
   TextDrawDestroy(himessage);
   return 1;
}



Re: TextDraw nгo desaparece. - zSuYaNw - 14.09.2013

TextDrawHideForPlayer(playerid, textdrawid);


Re: TextDraw nгo desaparece. - willttoonn - 15.09.2013

Problema e quando eel sai do veiculo e depois volta nгo aparece de novo.. a TextDraw


Re: TextDraw nгo desaparece. - willttoonn - 15.09.2013

Alguйm?


Re: TextDraw nгo desaparece. - PT - 15.09.2013

pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    TextDrawHideForPlayer(playerid, himessage);  
    return 1;
}