error fix please (INI_WriteInt) - 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: error fix please (INI_WriteInt) (
/showthread.php?tid=665130)
error fix please (INI_WriteInt) -
uni13 - 23.03.2019
public LoadSprayTags(sprayid)
{
new dir[256];
if(!CheckSprayTags(sprayid))
{
format(dir,sizeof(dir),"SprayTags/%d.ini",sprayid);
INI_Open(dir,Write);
INI_WriteInt("S_Member",random(sizeof(SprayList))) ;
INI_Close();
}
///////////////////////////////////////////////////////
maybe red line have error!
other line
public OnGameModeInit()
{
for(new i = 0; i < MAX_SPRAYS; i++)
{
LoadSprayTags(i);
}
and i check my folder read/write
Re: error fix please (INI_WriteInt) -
uni13 - 23.03.2019
find reason:no exist folder.
thank you.