[HELP]getting admin level from INI_File

Hello I made a command /addadmin when I type /addadmin name_admin level it creates file like

Luca_Johnson and inside that file is level = 1338 okay

but when I want to check when player enter server and if someone else set my level in that file and then I enter in server I will get message your admin level is changed your are nov admin: %d so how can I get that level


new level = INI_Int("Level"); or if you know what I mean? Thanks

and also is there a function for y_ini like yini_remove or I use fremove(File);

The INI_Int function is now obsolete.

You must use the dynamic loading method which y_ini provides to get the contents of the file or switch to another INI processor which allows you to do that.

Forum Jump:

Users browsing this thread: 1 Guest(s)