26.11.2013, 22:18
MAX_PLAYERS is just a definition anyway. By doing
will tell your compiler to create "MAX_PLAYERS" amount of "my_p_td"s variables, hence also called an array.
If you don't use an array, but instead a single variable, it will look like this:
https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw
"Creates a textdraw for a single player. This can be used as a way around the global text-draw limit."
pawn Код:
new PlayerText:my_p_td[MAX_PLAYERS];
If you don't use an array, but instead a single variable, it will look like this:
pawn Код:
// "playerid" equals 0
my_p_td = CreatePlayerTextDraw(playerid, 0.0, 0.0, "_");
// "playerid" equals 1 (overwrites last TD ID of player ID 0, bad!)
my_p_td = CreatePlayerTextDraw(playerid, 0.0, 0.0, "_");
"Creates a textdraw for a single player. This can be used as a way around the global text-draw limit."