Please Help me.
#2

Hey Try this one

PHP код:
    stock PlayerConnect(playerid)
    {
            new 
tmp3[50],plName[MAX_PLAYER_NAME],string[128];
            
GetPlayerName(playerid,plName,MAX_PLAYER_NAME) ;
            
GetPlayerIp(playerid,tmp3,50);
            if(
strlen(dini_Get("records.cfg"tmp3)) == 0)
            
dini_Set("records.cfg"tmp3plName);
            else
        {
    
        {
            
format(string,sizeof(string),"%s,%s"dini_Get("records.cfg",tmp3), plName);
            
dini_Set("records.cfg"tmp3string);
        }
        }
            new 
Filefile fopen("accounts.cfg"io_append);
            
format(string,sizeof(string),"%s\r\n",plName);
            
fwrite(file,string);
            
fclose(file);
            return 
1;
    } 
the warning means you've already have PlayerName
Reply


Messages In This Thread
Please Help me. - by Isteven - 21.05.2018, 09:45
Re: Please Help me. - by Shadow0707 - 21.05.2018, 09:50
Re: Please Help me. - by Isteven - 21.05.2018, 09:59
Re: Please Help me. - by CaptainBoi - 21.05.2018, 10:06

Forum Jump:


Users browsing this thread: 1 Guest(s)