Grabbing name and value from userfiles? - 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: Grabbing name and value from userfiles? (
/showthread.php?tid=488421)
Grabbing name and value from userfiles? -
itsCody - 17.01.2014
Is there away to grab a name and value from a file?
Like for example: Player file would have Banned = 1, how would I get that from the players file so it can be used to check if a player is already banned with a command?
I'm using Y_INI.
Re: Grabbing name and value from userfiles? -
DobbysGamertag - 18.01.2014
You can use INI_Int if the function still exists. Check YSI wiki, or ******'s topic regarding it. Remember to
pawn Код:
Ini_WriteInt(somefilename,"Banned",somevalue);
Forgive me, its been a while since using y_ini.