y_ini Help
#2

Quote:
Originally Posted by Linus-
View Post
Hi i have created that auto login system but getting some error
Error:
pawn Code:
error 033: array must be indexed (variable "tmp2")
pawn Code:
new
        PlayerFile[13 + MAX_PLAYER_NAME];
    if (!INI_Exist(pName(playerid)))
    {
        //register request
    }
    else
    {
        format(PlayerFile,256,"Accounts/%s.ini",Encode(pName(playerid)));
        new tmp[50],tmp2[256]; GetPlayerIp(playerid,tmp,50);
        tmp2[] = INI_ParseFile(PlayerFile,"IP");// that is the line where getting error please help me.
        if(!strcmp(tmp,tmp2,true))
        {
            //auto login
        }
        else
        {
            //login request
        }
    }
4char
Reply


Messages In This Thread
y_ini Help - by Linus- - 22.01.2011, 10:50
Re: y_ini Help - by Code_Red - 22.01.2011, 10:51
Re: y_ini Help - by Linus- - 22.01.2011, 10:55
Re: y_ini Help - by HyperZ - 22.01.2011, 11:19
Re: y_ini Help - by Linus- - 22.01.2011, 11:22
Re: y_ini Help - by Finn - 22.01.2011, 11:45
Re: y_ini Help - by Linus- - 22.01.2011, 13:09

Forum Jump:


Users browsing this thread: 1 Guest(s)