17.09.2009, 20:54
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; }