28.02.2012, 13:45
Hey 
I have this problem that I have been ignoring in the script for now months, and I'm still puzzled about why it's happening.
So basically what's troubling me is that no matter which !pm command I use for IRC, it doesn't work. I've tried my own IRC personal message scripts, those that were working on a different gamemode, and I've also tried like 5 others scripts from the forums. None seem to work.
Actual problem:
The command itself does execute and sends, but it's pretty much limited to like 20-25 characters.
Example
When doing: !pm 0 This is a test to see if the personal message command is working.
Result ingame for id 0: PM From Roperr (IRC): This is a test to see if
The message cuts down at approximately that much of text.
Warnings
Yes my strings are properly defined.
Yes I've tried other commands.
My !msg command is fully working, seems like it cuts off when using a playerid parameter or something?
Code
Help me solve this silly thing

I have this problem that I have been ignoring in the script for now months, and I'm still puzzled about why it's happening.
So basically what's troubling me is that no matter which !pm command I use for IRC, it doesn't work. I've tried my own IRC personal message scripts, those that were working on a different gamemode, and I've also tried like 5 others scripts from the forums. None seem to work.
Actual problem:
The command itself does execute and sends, but it's pretty much limited to like 20-25 characters.
Example
When doing: !pm 0 This is a test to see if the personal message command is working.
Result ingame for id 0: PM From Roperr (IRC): This is a test to see if
The message cuts down at approximately that much of text.
Warnings
Yes my strings are properly defined.
Yes I've tried other commands.
My !msg command is fully working, seems like it cuts off when using a playerid parameter or something?
Code
pawn Код:
IRCCMD:pm(botid, channel[], user[], host[], params[])
{
if(IRC_IsVoice(botid, channel, user))
{
new ID;
new pname[24];
new message[128];
new string[400];
if(sscanf(params,"ds",ID,message)) return IRC_GroupSay(gGroupID, IRC_CHANNEL, "Usage: !pm <ID> <message>");
GetPlayerName(ID, pname, 24);
if(!IsPlayerConnected(ID))
{
IRC_GroupSay(gGroupID, IRC_CHANNEL, "Invalid Player ID.");
return 1;
}
format(string, sizeof(string), "%s, IRCPM sent.", user);
IRC_GroupSay(gGroupID, channel,string);
format(string, sizeof(string), "[IRC] From User %s: %s", user, message);
SendClientMessage(ID, COLOR_BLUE, string);
return 1;
}
return 1;
}


