[Ajuda] TextDraw nгo desaparece.
#1

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;
}
Reply
#2

TextDrawHideForPlayer(playerid, textdrawid);
Reply
#3

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

Alguйm?
Reply
#5

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


Forum Jump:


Users browsing this thread: 3 Guest(s)