How can I fix it
#5

try this
pawn Код:
new pIP[50]; GetPlayerIp(playerid,pIP,50);
         new string2[256];
       if(strlen(INI_String("ZeroAdmin/aka.txt", pIP)) == 0)
    INI_WriteString("ZeroAdmin/aka.txt", pIP, PlayerName);
     else
    {
        if( strfind(INI_String("ZeroAdmin/aka.txt", pIP), PlayerName, true) == -1 )
        {
          format(string2,sizeof(string2),"%s,%s", INI_String("ZeroAdmin/aka.txt",pIP), PlayerName);
           INI_WriteString("ZeroAdmin/aka.txt", pIP, string2);
        }
     }
some converting functions from dini - y_ini:
Код:
dini to y_ini:
dini_Get -> INI_String
dini_Int -> INI_Int
dini_IntSet -> INI_WriteInt
dini_Set -> INI_WriteString
Reply


Messages In This Thread
How can I fix it - by EmpireSk - 06.02.2015, 23:02
Re: How can I fix it - by Threshold - 07.02.2015, 00:21
Re: How can I fix it - by EmpireSk - 07.02.2015, 11:21
Re: How can I fix it - by EmpireSk - 07.02.2015, 12:52
Re: How can I fix it - by Sawalha - 07.02.2015, 12:58
Re: How can I fix it - by EmpireSk - 07.02.2015, 13:10
Re: How can I fix it - by Sawalha - 07.02.2015, 13:15
Re: How can I fix it - by EmpireSk - 07.02.2015, 13:21
Re: How can I fix it - by DaniceMcHarley - 07.02.2015, 13:56
Re: How can I fix it - by EmpireSk - 07.02.2015, 17:45

Forum Jump:


Users browsing this thread: 2 Guest(s)