new pIP[128], str[MAX_STRING];
GetPlayerIp(playerid,pIP,128);
INI_String("ZeroAdmin/aka.txt",pIP,128);
if(strlen(pIP) == 0)
INI_String("ZeroAdmin/aka.txt", pIP, PlayerName(playerid));
else
{
if(strfind(pIP, PlayerName(playerid), true) == 0 )
{
format(str,sizeof(str),"%s,%s", pIP, PlayerName(playerid));
INI_String("ZeroAdmin/aka.txt", str,pIP);
}
}
C:\Users\Mivco\Desktop\GameMode.pwn(207) : error 017: undefined symbol "name"
C:\Users\Mivco\Desktop\GameMode.pwn(207) : error 017: undefined symbol "value"
C:\Users\Mivco\Desktop\GameMode.pwn(209) : error 017: undefined symbol "name"
C:\Users\Mivco\Desktop\GameMode.pwn(209) : error 017: undefined symbol "value"
C:\Users\Mivco\Desktop\GameMode.pwn(215) : error 017: undefined symbol "name"
C:\Users\Mivco\Desktop\GameMode.pwn(215) : error 017: undefined symbol "value"
new pIP[50]; GetPlayerIp(playerid,pIP,50);
new string2[256];
if(strlen(dini_Get("ZeroAdmin/aka.txt", pIP)) == 0)
dini_Set("ZeroAdmin/aka.txt", pIP, PlayerName);
else
{
if( strfind( dini_Get("ZeroAdmin/aka.txt", pIP), PlayerName, true) == -1 )
{
format(string2,sizeof(string2),"%s,%s", dini_Get("ZeroAdmin/aka.txt",pIP), PlayerName);
dini_Set("ZeroAdmin/aka.txt", pIP, string2);
}
}
new string[128],playername[MAX_PLAYER_NAME]; |