SA-MP Forums Archive
help :D - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help :D (/showthread.php?tid=152687)



help :D - iJumbo - 05.06.2010

how i cn read from a ini file like playername.ini and into this file specialweapons= 1 or 0 thx


Re: help :D - iJumbo - 05.06.2010

help


Re: help :D - Flashy - 05.06.2010

Open it with Windows Editor.


Re: help :D - iJumbo - 05.06.2010

-.- how to read a ini file in a pawno script


Re: help :D - Jonni8 - 05.06.2010

use dini-include...


Re: help :D - GangsTa_ - 05.06.2010

To use it in pawno you need to have that file in Includes (I think)


Re: help :D - DJDhan - 05.06.2010

Quote:
Originally Posted by тħeρяш
use dini-include...
Quote:
Originally Posted by Flashy
Open it with Windows Editor.


Anyways, you need to use enum like PlayerInfo. If you do use them, you should have a variable like "specialweapons" in the enum.
Under you login code:
Код:
PlayerInfo[playerid][specialweapons] = dini_Int(file,"specialweapons");