07.02.2015, 18:57
Hi, how do I fix this error and make it work.
Already bother with it all day
Code:
Errors:
Lines:
207: INI_String("ZeroAdmin/aka.txt",pIP,12;
209: INI_String("ZeroAdmin/aka.txt", pIP, PlayerName(playerid));
215: INI_String("ZeroAdmin/aka.txt", str,pIP);
Original Code:
Will you help me with a problem?
Already bother with it all day
Code:
PHP код:
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);
}
}
PHP код:
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"
207: INI_String("ZeroAdmin/aka.txt",pIP,12;
209: INI_String("ZeroAdmin/aka.txt", pIP, PlayerName(playerid));
215: INI_String("ZeroAdmin/aka.txt", str,pIP);
Original Code:
PHP код:
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);
}
}