[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


Messages In This Thread
TextDraw nгo desaparece. - by willttoonn - 14.09.2013, 08:00
Re: TextDraw nгo desaparece. - by zSuYaNw - 14.09.2013, 09:46
Re: TextDraw nгo desaparece. - by willttoonn - 15.09.2013, 02:42
Re: TextDraw nгo desaparece. - by willttoonn - 15.09.2013, 06:06
Re: TextDraw nгo desaparece. - by PT - 15.09.2013, 06:17

Forum Jump:


Users browsing this thread: 3 Guest(s)