Loading integer with y_ini - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Loading integer with y_ini (
/showthread.php?tid=353437)
Loading integer with y_ini -
McCarthy - 23.06.2012
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!
Re: Loading integer with y_ini -
McCarthy - 23.06.2012
Eh, I did but I didn't quite understand it
Re: Loading integer with y_ini -
McCarthy - 23.06.2012
pawn Код:
INI:mine[examples](name[], value[])
{
if (!strcmp(name, "some_integer"))
{
gSomeInteger = strval(value);
return;
}
}
Around here :/