error fix please (INI_WriteInt)
#1

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
Reply
#2

find reason:no exist folder.
thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)