Does these two loops do the same thing?
#5

Quote:
Originally Posted by Babul
View Post
the PlayerInfo[playerid][pAdminLevel] is a global variable, it wont get erased in case a level 3 admin logs out. so adding the level=0 into the disconnect, is a good idea.
to set admin level to 0 when connecting, is not the best idea (its value is set to 0 at initializing, also got set to 0 from a recently playing admin on that slot).
i suggest you to use PVars to store such "important" variables, so any of your filterscript can access it aswell. PVars gets deleted when a player disconnects, so no worry about resetting the player-arrays.
I suggest you to read this:
http://forum.sa-mp.com/showthread.ph...highlight=PVar
Reply


Messages In This Thread
Does these two loops do the same thing? - by Cowboy - 01.09.2011, 10:39
Re: Does these two loops do the same thing? - by Lorenc_ - 01.09.2011, 10:41
Re: Does these two loops do the same thing? - by Cowboy - 01.09.2011, 10:46
Re: Does these two loops do the same thing? - by Babul - 01.09.2011, 11:16
Re: Does these two loops do the same thing? - by =WoR=Varth - 01.09.2011, 11:28
Re: Does these two loops do the same thing? - by AndreT - 01.09.2011, 11:46
Re: Does these two loops do the same thing? - by =WoR=Varth - 01.09.2011, 11:56
Re: Does these two loops do the same thing? - by Cowboy - 01.09.2011, 11:58
Re: Does these two loops do the same thing? - by =WoR=Varth - 01.09.2011, 12:08
Re: Does these two loops do the same thing? - by Cowboy - 01.09.2011, 12:17

Forum Jump:


Users browsing this thread: 1 Guest(s)