Szerző Téma: TextDraw - egymásra rakódás  (Megtekintve 491 alkalommal)

Nem elérhető tudvari

  • 1264
  • Fejlesztő
    • Profil megtekintése
TextDraw - egymásra rakódás
« Dátum: 2011. December 27. - 07:43:09 »
0 Show voters
[pawn]
/*new Text:muszerfal;
muszerfal = TextDrawCreate(200.0, 50.0, \"x\");
TextDrawUseBox(muszerfal, 1);
TextDrawColor(muszerfal,0x12900BBF);
TextDrawBoxColor(muszerfal, 0x12900BBF);
TextDrawSetOutline(muszerfal,1);
TextDrawBackgroundColor(muszerfal, 0x000000FF);
TextDrawFont(muszerfal, 2);
TextDrawAlignment(muszerfal, 2);*/
new Text:xpcsik;
xpcsik = TextDrawCreate(548.500000000, 36.000000, \"x\");
TextDrawUseBox(xpcsik, 1);
TextDrawColor(xpcsik,0x12900BBF);
TextDrawBoxColor(xpcsik, 0x00000000);
TextDrawSetOutline(xpcsik,1);
TextDrawBackgroundColor(xpcsik, 0x00000000);
TextDrawFont(xpcsik, 2);
SetGameModeText(\"Blank Script\");
AddPlayerClass(101,722.3772,-1477.2856,5.4688,272.3814,0,0,0,0,0,0);
TextDrawAlignment(xpcsik, 2);
new Text:infovonal;
infovonal = TextDrawCreate(0.0, 0.0, \"x\");
TextDrawUseBox(infovonal, 1);
TextDrawColor(infovonal,0x12900BBF);
TextDrawBoxColor(infovonal, 0x12900BBF);
TextDrawSetOutline(infovonal,1);
TextDrawBackgroundColor(infovonal, 0x000000FF);
TextDrawFont(infovonal, 2);
TextDrawAlignment(infovonal, 2);[/pawn]
Sziasztok van ez a 3 textdraw.És azt vettem észre,hogy tök mind1 mit írok be a create helyére mert csak a scriptben az elsõnek az értékét veszi fel,jeleneesetben az xp-csíkot(mert a muszerfal ki van kapcsolva) és oda rak mindent.Ugyan így lemásolja a háttérszínét is az elsõnek a többi textdraw.
Nem tudnátok segíteni?

Nem elérhető [sdc]skyline

  • 1333
  • ςκyΙιηε
    • Profil megtekintése
TextDraw - egymásra rakódás
« Válasz #1 Dátum: 2011. December 27. - 10:47:19 »
0 Show voters
hasonló képpen próbálkozz:
[pawn]#include <a_samp>
new Text:muszerfal;
new Text:xpcsik;
new Text:infovonal;
public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid, muszerfal);
    TextDrawShowForPlayer(playerid, xpcsik);
    TextDrawShowForPlayer(playerid, infovonal);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
    TextDrawHideForPlayer(playerid, muszerfal);
    TextDrawHideForPlayer(playerid, xpcsik);
    TextDrawHideForPlayer(playerid, infovonal);
return 1;
}
public OnFilterScriptInit()
{
muszerfal = TextDrawCreate(200.0, 50.0, \"x\");
TextDrawUseBox(muszerfal, 1);
TextDrawColor(muszerfal,0x12900BBF);
TextDrawBoxColor(muszerfal, 0x12900BBF);
TextDrawSetOutline(muszerfal,1);
TextDrawBackgroundColor(muszerfal, 0x000000FF);
TextDrawFont(muszerfal, 2);
TextDrawAlignment(muszerfal, 2);
xpcsik = TextDrawCreate(548.500000000, 36.000000, \"x\");
TextDrawUseBox(xpcsik, 1);
TextDrawColor(xpcsik,0x12900BBF);
TextDrawBoxColor(xpcsik, 0x00000000);
TextDrawSetOutline(xpcsik,1);
TextDrawBackgroundColor(xpcsik, 0x00000000);
TextDrawFont(xpcsik, 2);
SetGameModeText(\"Blank Script\");
AddPlayerClass(101,722.3772,-1477.2856,5.4688,272.3814,0,0,0,0,0,0);
TextDrawAlignment(xpcsik, 2);
infovonal = TextDrawCreate(0.0, 0.0, \"x\");
TextDrawUseBox(infovonal, 1);
TextDrawColor(infovonal,0x12900BBF);
TextDrawBoxColor(infovonal, 0x12900BBF);
TextDrawSetOutline(infovonal,1);
TextDrawBackgroundColor(infovonal, 0x000000FF);
TextDrawFont(infovonal, 2);
TextDrawAlignment(infovonal, 2);
return 1;
}[/pawn]
szerkesztve! elõzöt elronttottam
« Utoljára szerkesztve: 2011. December 27. - 10:49:44 írta driftBANDITS]skyline »

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal