SA-MP Forums Archive
[HELP] yini write ip - 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: [HELP] yini write ip (/showthread.php?tid=566211)



[HELP] yini write ip - Luca12 - 04.03.2015

Hello I have a command banip and I define path /IPBans/%s.ini

know how can I when I banip in command to put that open ip beacuse I don't use id or playerid I use in sscanf ip

and I try like this but it says invalid expression

new INI:File = INI_Open(IPPath(ip)));


Re: [HELP] yini write ip - BroZeus - 04.03.2015

pawn Код:
#define  IPPath(%1) "/IPBans/%1.ini"
And use the code you are currently using for opening file.