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

bump.
Reply
#3

What do you mean you can't figure ?
Just convert the function names, if u did so, did u get errors or something ?
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)