Array does not load from .INC file
#1


I'm making an admin system. First thing that i made is a INC file that will connect all Filterscripts and Gammode. Every Filterscript HAS included my INC file.

Ok hers my problem:

I got array aLevel[MAX_PLAYERS]; that is as you assume admin level. In one, of 7 FS, Functions OsAmdin,IsAdminLevel,IsAdminLevelMin will not work, and problem is that the array is not loaded to the function. Other filterscript where those functions work, array is loaded

any suggestion what could the problem b, how to fix it?

I've been bothering with this for a hour, tried some things, tested like 20 of things, nothing works

CODE in include
Код:
new aLevel[MAX_PLAYERS];

stock IsAdmin(playerid)
{
	if (aLevel[playerid]>0) return 1; else return 0;
}
stock IsAdminLevel(playerid,level)
{
	if (aLevel[playerid]==level) return 1; else return 0;
}
stock IsAdminLevelMin(playerid,level)
{
	if (aLevel[playerid]>=level) return 1; else return 0;
}
stock SetAdminLevel(playerid,level)
{
	return aLevel[playerid]=level;
}
Reply


Messages In This Thread
Array does not load from .INC file - by TMasters - 17.09.2009, 20:54
Re: Array does not load from .INC file - by TMasters - 17.09.2009, 21:19
Re: Array does not load from .INC file - by Donny_k - 17.09.2009, 21:41
Re: Array does not load from .INC file - by TMasters - 18.09.2009, 06:27

Forum Jump:


Users browsing this thread: 1 Guest(s)