Loading integer with y_ini
#1

Hi, I'm kinda new to y_ini and after reading the topics I still didn't quite understand how to load a interger from the user file, in this case I wish to load their admin level after they have logged in so they won't see the admin chat before logging in succesfully. I followed this tutorial and my files look like this.
Код:
[data]
Password = 20644050
Cash = 1198900
Admin = 4
Kills = 0
Deaths = 1
I would appreciate some helping hands!
Reply
#2

Eh, I did but I didn't quite understand it
Reply
#3

pawn Код:
INI:mine[examples](name[], value[])
{
    if (!strcmp(name, "some_integer"))
    {
        gSomeInteger = strval(value);
        return;
    }
}
Around here :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)