22.01.2016, 09:12
If i'm not wrong it supposed to be like that:
And For update text
PHP код:
new Text:PTextDraw[MAX_PLAYERS]; // on top
PHP код:
PTextDraw[playerid] = TextDrawCreate(x,y," "); // on player connect
PHP код:
TextDrawDestroy(PTextDraw[playerid]); // onplayerdisconnect
PHP код:
new string[150];
format(string, sizeof(string), "\t%s 's Gears ammount:\n\nYou Have: %d Gears!", Global_Name, PlayerInfo[playerid][GoldCoins]);
TextDrawSetString(PTextDraw[playerid],string);
TextDrawShowForPlayer(playerid,PTextDraw);