String IP Problem
#1

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:
pawn Код:
new strMsg[10];
  new IP = dUserINT(params).("PlayersIP");
  format(strMsg, sizeof(strMsg), "unbanip %d",IP);
  SendRconCommand(strMsg);
  ircSay(conn,channel,strMsg);
I have it echo to IRC for debug purposes, obviously.
Reply


Messages In This Thread
String IP Problem - by Byrner - 04.03.2009, 18:53
Re: String IP Problem - by Marcel - 04.03.2009, 18:55
Re: String IP Problem - by Byrner - 04.03.2009, 19:12
Re: String IP Problem - by Marcel - 04.03.2009, 19:15
Re: String IP Problem - by Byrner - 04.03.2009, 19:17
Re: String IP Problem - by Marcel - 04.03.2009, 19:18
Re: String IP Problem - by Byrner - 04.03.2009, 19:21
Re: String IP Problem - by Marcel - 04.03.2009, 19:23
Re: String IP Problem - by Nimphious - 04.03.2009, 19:26
Re: String IP Problem - by Byrner - 04.03.2009, 19:30

Forum Jump:


Users browsing this thread: 1 Guest(s)