20.07.2012, 20:19
You could make the script more accurate.
You need to create per player textdraws.
Example of what you made:
Player 1 types /stats and see he's stats. Player2 types /stats and see he's stats. Player1 now sees stats of player2 because your textdraws updated for all as it's globals and not 1 per player.
pawn Code:
// create textdraws per player
new Text:StatsText[MAX_PLAYERS][14];
// this goes under onfilterscript init
for(new i = 0; i < MAX_PLAYERS; i++)
{
StatsText[i][0] = TextDrawCreate...
Example of what you made:
Player 1 types /stats and see he's stats. Player2 types /stats and see he's stats. Player1 now sees stats of player2 because your textdraws updated for all as it's globals and not 1 per player.