[FilterScript] TextStats (Players info in Textdraws)
#7

You could make the script more accurate.

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...
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.
Reply


Messages In This Thread
TextStats (Players info in Textdraws) - by marcoj - 20.07.2012, 11:51
Re: TextStats (Players info in Textdraws) - by Infinity90 - 20.07.2012, 12:09
Re: TextStats (Players info in Textdraws) - by cremlion - 20.07.2012, 14:22
Re: TextStats (Players info in Textdraws) - by marcoj - 20.07.2012, 14:24
Re: TextStats (Players info in Textdraws) - by M3mPHi$_S3 - 20.07.2012, 14:30
Re: TextStats (Players info in Textdraws) - by marcoj - 20.07.2012, 14:34
Re: TextStats (Players info in Textdraws) - by Cypress - 20.07.2012, 20:19
Re: TextStats (Players info in Textdraws) - by LaGrande - 21.07.2012, 08:08

Forum Jump:


Users browsing this thread: 1 Guest(s)