13.05.2015, 02:45
(
Последний раз редактировалось earlybird325; 16.05.2015 в 11:01.
)
Im trying to convert this dini ip saving thing to y_ini and I cant figure out how to do it.
Help would be much appreciated
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);
}
}