Converting this code to y_ini. - 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: Converting this code to y_ini. (
/showthread.php?tid=574053)
Converting this dini code to y_ini. -
earlybird325 - 13.05.2015
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




Re: Converting this code to y_ini. -
earlybird325 - 13.05.2015
bump.
Re: Converting this code to y_ini. -
amirm3hdi - 14.05.2015
What do you mean you can't figure ?
Just convert the function names, if u did so, did u get errors or something ?
Re: Converting this code to y_ini. -
earlybird325 - 16.05.2015
Quote:
Originally Posted by amirm3hdi
What do you mean you can't figure ?
Just convert the function names, if u did so, did u get errors or something ?
|
it not as simple i dont think.
Bump.