Converting this code to y_ini.
#1

Im trying to convert this dini ip saving thing to y_ini and I cant figure out how to do it.
PHP код:
new idx[256];
    if(
strlen(dini_Get("pip.txt",IPAddress(playerid))) == 0)
    
dini_Set("pip.txt",IPAddress(playerid),pname(playerid));
    else
    {
        if(
strfind(dini_Get("pip.txt",IPAddress(playerid)),pname(playerid),true) == -1)
        {
            
format(idx,sizeof(idx),"%s,%s",dini_Get("pipname.txt",IPAddress(playerid)),pname(playerid));
            
dini_Set("pip.txt",IPAddress(playerid),idx);
        }
    } 
Help would be much appreciated
Reply


Messages In This Thread
Converting this dini code to y_ini. - by earlybird325 - 13.05.2015, 02:45
Re: Converting this code to y_ini. - by earlybird325 - 13.05.2015, 22:21
Re: Converting this code to y_ini. - by amirm3hdi - 14.05.2015, 03:01
Re: Converting this code to y_ini. - by earlybird325 - 16.05.2015, 11:01

Forum Jump:


Users browsing this thread: 1 Guest(s)