Textdraw problem
#8

Try this (Not Tested):

In Top:
pawn Код:
new Text: GateStats[MAX_PLAYERS];
InOnGameModeInit:
pawn Код:
for(new i=0; i<MAX_PLAYERS; i++)
{
GateStats[i] = TextDrawCreate(155.000000, 119.000000, " ");
}
//Your complete TextDraw code...
In "Traders":
pawn Код:
public Traders()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
TextDrawShowForPlayer(playerid, GateStats[i]);
TextDrawSetString(GateStats[i], "Gate Status: Opened!");
}
print("Traders doors are now open");
MoveObject(Trader1,0.0,0.0,0.0,1.5000);
SetTimer("close",100000,false);
}
In "close":
pawn Код:
public close()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
TextDrawSetString(GateStats[i], "Gate Status: Closing!");
}
print("Traders doors are now closed");
SetTimer("HideTD",5000,false);
MoveObject(Trader1,1644.0217285156, -1714.6821289063, 15.864986419678,1.5000);
}
And "HideTD":
pawn Код:
public HideTD()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
TextDrawHideForPlayer(playerid, GateStats[i]);
}
Reply


Messages In This Thread
Textdraw problem - by hardstop - 02.02.2010, 17:29
Re: Textdraw problem - by [03]Garsino - 02.02.2010, 17:43
Re: Textdraw problem - by hardstop - 02.02.2010, 17:44
Re: Textdraw problem - by Miguel - 02.02.2010, 17:48
Re: Textdraw problem - by hardstop - 02.02.2010, 17:49
Re: Textdraw problem - by [03]Garsino - 02.02.2010, 17:49
Re: Textdraw problem - by hardstop - 02.02.2010, 17:54
Re: Textdraw problem - by LuxurioN™ - 02.02.2010, 18:43

Forum Jump:


Users browsing this thread: 1 Guest(s)