Compiling...
C:\Users\Yassine\Desktop\gm.pwn(643) : error 017: undefined symbol "name"
C:\Users\Yassine\Desktop\gm.pwn(643) : error 017: undefined symbol "value"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
stock YINI_CheckBan(playerid)
{
new pIP[16], BannedIP[16], string[35], banned;
GetPlayerIp(playerid, pIP, sizeof(pIP));
format(string,sizeof(string),"/Banned/%s.ini",GetName(playerid));
if(fexist(string))
{
new INI:File = INI_Open(string);
INI_String("IP", BannedIP);
INI_Close(File);
if(!strcmp(BannedIP, pIP)) return banned = 1;
else
return banned = 0;
}
return banned;
}
INI_String("IP", BannedIP);
WriteInt ==> Write Integer
i need to write string not int EDIT: it's complie fine if i comment the line but i need it so i can't comment it |
I don't meant to remove it I was telling you to do a trial method so as to confirm its from that line.
|
That function has one more parameter try passing length too
sizeof(BannedIP) |
Compiling...
C:\Users\Yassine\Desktop\gm.pwn(643) : error 017: undefined symbol "name"
C:\Users\Yassine\Desktop\gm.pwn(643) : error 017: undefined symbol "value"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.