Player variables
#7

You cannot use this and get it works.
pawn Code:
new pVariable=0[MAX_PLAYERS];
You should define it as a global variable and set a value after, either inside a callback/custom function or command.
pawn Code:
// Global variable
new
    pVariable[ MAX_PLAYERS ]
;

// OnPlayerConnect
pVariable[ playerid ] = 0;

// There you want to increase the value by one
pVariable[ playerid ]++;
Reply


Messages In This Thread
Player variables - by Lz - 04.12.2012, 18:16
Re: Player variables - by tyler12 - 04.12.2012, 18:18
Re: Player variables - by CoaPsyFactor - 04.12.2012, 18:18
Re: Player variables - by Feastahashi - 04.12.2012, 18:19
Re: Player variables - by Lz - 04.12.2012, 18:32
Re: Player variables - by Bakr - 04.12.2012, 18:37
Re: Player variables - by Konstantinos - 04.12.2012, 19:18

Forum Jump:


Users browsing this thread: 2 Guest(s)