SA-MP Forums Archive
Error: name and value - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error: name and value (/showthread.php?tid=562233)



Error: name and value - EmpireSk - 07.02.2015

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?


Re: Error: name and value - EmpireSk - 07.02.2015

Help me please


Re: Error: name and value - EmpireSk - 08.02.2015

Help me


Re: Error: name and value - Rissam - 09.02.2015

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

new string[128],playername[MAX_PLAYER_NAME];