INI_WriteStringEx
#1

I'm tryin' to do this:

pawn Код:
format(string, sizeof string, "%d|%d|%d|%s|%s|Banned by *SYSTEM* for %s", day, month, year, ip, giveplayer, reason);
INI_WriteStringEx("LuxAdmin/Config/TempBans.ban", ip, string);
But this function isn't declared, as I thought it is! So what shall I do now; how to declare it? Or if not, how could I use the same just with INI_"WriteString"?
Reply
#2

pawn Код:
format(string, sizeof string, "%d|%d|%d|%s|%s|Banned by *SYSTEM* for %s", day, month, year, GetPlayerIP(playerid), giveplayer, reason);
INI_WriteString("LuxAdmin/Config/TempBans.ban", string);
The format does everything for you if you just make it right.
Reply
#3

Thanks, good way, but now I'm gettin' this error:

pawn Код:
error 017: undefined symbol "GetPlayerIP"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
At the line with "GetPlayerIP"...
Reply
#4

pawn Код:
stock GetPlayerIP(playerid)
{
    new szLen[16];
    GetPlayerIp(playerid, szLen, sizeof szLen);
    return szLen;
}
because the native function is GetPlayerIp.
Reply
#5

Thanks guys, shit's workin' now, I gave y'all reputation...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)