Info of local variable and global
#3

Quote:
Originally Posted by saffierr
Посмотреть сообщение
PHP код:
CMD:lol(playeridparams[])
{
   
example[playerid] = 10;
   return 
1;

This example is good. The player who typed the command /lol set the value example to 10 for his ID.
-If I'm a player ID 9 and I type the command /lol, so example[9] = 10.
So when a player disconnect you need to reset the variable (by player's id).
I hope you understand this.
Reply


Messages In This Thread
Info of local variable and global - by fuckingcruse - 31.05.2016, 06:47
Re: Info of local variable and global - by saffierr - 31.05.2016, 07:17
Re: Info of local variable and global - by Dayrion - 31.05.2016, 08:50
Re: Info of local variable and global - by SyS - 31.05.2016, 11:25
Re: Info of local variable and global - by saffierr - 31.05.2016, 11:28

Forum Jump:


Users browsing this thread: 1 Guest(s)