09.12.2011, 00:31
Hi, im trying to show a textdraw for each player, but i can't get it to show to only a player... this is what i've done :
at the top :
and above :
im updating the textdraw with :
But all the textdraw show to the same player and all others players don't see any textdraw. how can i fix this?
Thank you for your help
at the top :
Код:
new Text:TextDrawsd[MAX_PLAYERS];
Код:
public OnPlayerConnect(playerid) { TextDrawsd[playerid] = TextDrawCreate(549.0,310.0," "); TextDrawShowForPlayer(playerid,TextDrawsd[playerid]); return 1; } public OnPlayerDisconnect(playerid, reason) { TextDrawDestroy(TextDrawsd[playerid]); return 1; }
Код:
TextDrawSetString(TextDrawsd[playerid], "Some text here");
Thank you for your help