Szerző Téma: Textdraw nem jelenik meg...  (Megtekintve 639 alkalommal)

Textdraw nem jelenik meg...
« Dátum: 2013. december 04. - 01:17:02 »
0 Show voters
Sziasztok, szeretnék segítséget kérni ebben :) (Sajnos a pawno nem jelez semmit... :( )
 
new string1[50];
new string2[50];
new PlayerText:Textdraw0[MAX_PLAYERS];
new PlayerText:Textdraw1[MAX_PLAYERS];

 
OnPlayerConnect
 
Textdraw0[playerid] = CreatePlayerTextDraw(playerid,540.000000, 389.000000, \" \");
PlayerTextDrawBackgroundColor(playerid,Textdraw0[playerid], 255);
PlayerTextDrawFont(playerid,Textdraw0[playerid], 1);
PlayerTextDrawLetterSize(playerid,Textdraw0[playerid], 0.500000, 1.000000);
PlayerTextDrawColor(playerid,Textdraw0[playerid], -1);
PlayerTextDrawSetOutline(playerid,Textdraw0[playerid], 0);
PlayerTextDrawSetProportional(playerid,Textdraw0[playerid], 1);
PlayerTextDrawSetShadow(playerid,Textdraw0[playerid], 1);
PlayerTextDrawSetSelectable(playerid,Textdraw0[playerid], 0);
Textdraw1[playerid] = CreatePlayerTextDraw(playerid,551.000000, 375.000000, \" \");
PlayerTextDrawBackgroundColor(playerid,Textdraw1[playerid], 255);
PlayerTextDrawFont(playerid,Textdraw1[playerid], 1);
PlayerTextDrawLetterSize(playerid,Textdraw1[playerid], 0.500000, 1.000000);
PlayerTextDrawColor(playerid,Textdraw1[playerid], -1);
PlayerTextDrawSetOutline(playerid,Textdraw1[playerid], 0);
PlayerTextDrawSetProportional(playerid,Textdraw1[playerid], 1);
PlayerTextDrawSetShadow(playerid,Textdraw1[playerid], 1);
PlayerTextDrawSetSelectable(playerid,Textdraw1[playerid], 0);

 
disconnect
 
PlayerTextDrawDestroy(playerid, PlayerText:Textdraw0[playerid]);
PlayerTextDrawDestroy(playerid, PlayerText:Textdraw1[playerid]);

 
statechange
 
if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
    {
PlayerTextDrawShow(playerid, PlayerText:Textdraw0[playerid]);
PlayerTextDrawShow(playerid, PlayerText:Textdraw1[playerid]);
    }
   if(oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER)
    {
PlayerTextDrawHide(playerid, PlayerText:Textdraw0[playerid]);
PlayerTextDrawHide(playerid, PlayerText:Textdraw1[playerid]);
    }

 
frissítés
 
format(string1, sizeof(string1), \" %i km/h \", valami);
format(string2, sizeof(string2), \"Benzin: %i% \", floatround(benzin[GetPlayerVehicleID(playerid)]/20*100));
PlayerTextDrawSetString(playerid, PlayerText:Textdraw0[playerid], string2);

 
Nem tudom miért, de nem jelenik meg a textdraw sehol sem, a másik textdrawom (ami sima createtextdraw) megjelenik.
Ha valaki ki tudná nekem ezt javítani, kérem írja oda, mit változtatott benne, hogy következõre tudjam :)
Köszi elõre is a segítséget!
« Utoljára szerkesztve: 2013. december 04. - 18:18:59 írta kiakovi »

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal