PDA

View Full Version : error fix please (INI_WriteInt)


uni13
23/03/2019, 12:51 PM
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

uni13
23/03/2019, 03:00 PM
find reason:no exist folder.
thank you.