Error: name and value
#1

Hi, how do I fix this error and make it work.
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"pIPPlayerName(playerid));
else
{
if(
strfind(pIPPlayerName(playerid), true) == )
{
format(str,sizeof(str),"%s,%s"pIPPlayerName(playerid));
INI_String("ZeroAdmin/aka.txt"str,pIP);
}

Errors:
PHP код:
C:\Users\Mivco\Desktop\GameMode.pwn(207) : error 017undefined symbol "name"
C:\Users\Mivco\Desktop\GameMode.pwn(207) : error 017undefined symbol "value"
C:\Users\Mivco\Desktop\GameMode.pwn(209) : error 017undefined symbol "name"
C:\Users\Mivco\Desktop\GameMode.pwn(209) : error 017undefined symbol "value"
C:\Users\Mivco\Desktop\GameMode.pwn(215) : error 017undefined symbol "name"
C:\Users\Mivco\Desktop\GameMode.pwn(215) : error 017undefined symbol "value" 
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:
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"pIPPlayerName);
else
{
if( 
strfinddini_Get("ZeroAdmin/aka.txt"pIP), PlayerNametrue) == -)
{
format(string2,sizeof(string2),"%s,%s"dini_Get("ZeroAdmin/aka.txt",pIP), PlayerName);
dini_Set("ZeroAdmin/aka.txt"pIPstring2);
}

Will you help me with a problem?
Reply
#2

Help me please
Reply
#3

Help me
Reply
#4

u haven't defined what is player name
try adding this
Quote:

new string[128],playername[MAX_PLAYER_NAME];

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)