Posts: 1,046
Threads: 29
Joined: Mar 2010
I am now confused about the player text draws.
Will they destroy automaticly when a player quits and do I have to declarate a player text draws as an array or does it fit as he/she mentioned above?
Posts: 2,262
Threads: 260
Joined: Mar 2009
Reputation:
0
But how are you suppose to know what to open if it's not saved in a variable?
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
I'm still a bit confused about this. I'm guessing is HAS to be an array? How can you store IDs for all players in one variable..?
Posts: 341
Threads: 20
Joined: May 2008
Reputation:
0
new ptextdraws[MAX_PLAYERS];
OnPlayerConnect
ptextdraw[playerid]=CreatePlayerTextdraw(blabla);
Posts: 624
Threads: 38
Joined: Feb 2010
Reputation:
0
You don't need Arrays ...
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
If player 0 has 1 TD created (id 0) and player 1 has 2 (id 0+1) then the next textdraw created for them both will be 1 and 2, so of course you need an array.
(Not sure if TDs start at ID 0, assume so.)
Posts: 292
Threads: 9
Joined: Oct 2011
Reputation:
0
I'm not sure how I managed to get it so wrong haha. I'll change my post to avoid confusion.