04.03.2009, 18:53
Ok, I made it so a players IP saves to his player file.
I am making a !unban command for IRC.
It wasn't working, so I did a debug to see what was happening.
Turns out it's only doing "unbanip (First 2 digits of IP, and stopping after full stop)
For example, if the IP I was unbanning was
73.56.321.56
It would send the rcon command "unbanip 73"
I was told this could be to do with a string problem.
I have tried a few, but they didn't work, any recommendations?
Or anybody know of another solution?
Here's part of my code:
I have it echo to IRC for debug purposes, obviously.
I am making a !unban command for IRC.
It wasn't working, so I did a debug to see what was happening.
Turns out it's only doing "unbanip (First 2 digits of IP, and stopping after full stop)
For example, if the IP I was unbanning was
73.56.321.56
It would send the rcon command "unbanip 73"
I was told this could be to do with a string problem.
I have tried a few, but they didn't work, any recommendations?
Or anybody know of another solution?
Here's part of my code:
pawn Код:
new strMsg[10];
new IP = dUserINT(params).("PlayersIP");
format(strMsg, sizeof(strMsg), "unbanip %d",IP);
SendRconCommand(strMsg);
ircSay(conn,channel,strMsg);