Got 3 textdraws, showing just the first one - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Got 3 textdraws, showing just the first one (
/showthread.php?tid=656224)
Got 3 textdraws, showing just the first one -
Fabyx15 - 10.07.2018
I got 3 textdraws with TDE, im putting it in a gm and it's showing just the first textdraw...
Код:
new Text:TDEditor_TD[3];
public OnGameModeInit()
{
TDEditor_TD[0] = TextDrawCreate(0.922417, 313.083251, "Romania");
TextDrawLetterSize(TDEditor_TD[0], 0.629997, 2.589998);
TextDrawAlignment(TDEditor_TD[0], 1);
TextDrawColor(TDEditor_TD[0], -620493057);
TextDrawSetShadow(TDEditor_TD[0], -114);
TextDrawSetOutline(TDEditor_TD[0], 1);
TextDrawBackgroundColor(TDEditor_TD[0], 255);
TextDrawFont(TDEditor_TD[0], 0);
TextDrawSetProportional(TDEditor_TD[0], 1);
TextDrawSetShadow(TDEditor_TD[0], -114);
TDEditor_TD[1] = TextDrawCreate(69.189483, 314.333374, "Stunt");
TextDrawLetterSize(TDEditor_TD[1], 0.627232, 2.358334);
TextDrawAlignment(TDEditor_TD[1], 1);
TextDrawColor(TDEditor_TD[1], -318832385);
TextDrawSetShadow(TDEditor_TD[1], 0);
TextDrawSetOutline(TDEditor_TD[1], 1);
TextDrawBackgroundColor(TDEditor_TD[1], 255);
TextDrawFont(TDEditor_TD[1], 0);
TextDrawSetProportional(TDEditor_TD[1], 1);
TextDrawSetShadow(TDEditor_TD[1], 0);
TDEditor_TD[2] = TextDrawCreate(116.852722, 313.500091, "Vers");
TextDrawLetterSize(TDEditor_TD[2], 0.727027, 2.521665);
TextDrawAlignment(TDEditor_TD[2], 1);
TextDrawColor(TDEditor_TD[2], 57087);
TextDrawSetShadow(TDEditor_TD[2], 0);
TextDrawSetOutline(TDEditor_TD[2], 1);
TextDrawBackgroundColor(TDEditor_TD[2], 255);
TextDrawFont(TDEditor_TD[2], 0);
TextDrawSetProportional(TDEditor_TD[2], 1);
TextDrawSetShadow(TDEditor_TD[2], 0);
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, TDEditor_TD[playerid]);
return 1;
}
public OnPlayerDisconnect(playerid)
{
TextDrawHideForAll(TDEditor_TD[playerid]);
TextDrawDestroy(TDEditor_TD[playerid]);
return 1;
}
Re: Got 3 textdraws, showing just the first one -
Florin48 - 10.07.2018
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, TDEditor_TD[0]);
TextDrawShowForPlayer(playerid, TDEditor_TD[1]);
TextDrawShowForPlayer(playerid, TDEditor_TD[2]);
return 1;
}
public OnPlayerDisconnect(playerid)
{
TextDrawHideForAll(TDEditor_TD[0]);
TextDrawDestroy(TDEditor_TD[0]);
TextDrawHideForAll(TDEditor_TD[1]);
TextDrawDestroy(TDEditor_TD[1]);
TextDrawHideForAll(TDEditor_TD[2]);
TextDrawDestroy(TDEditor_TD[2]);
return 1;
}
Vezi daca merge.
Re: Got 3 textdraws, showing just the first one -
Fabyx15 - 10.07.2018
Mersiiii mult de tot!
SOLVED!