String problem ?!
#1

Well as the title says I have a problem with a string.
There is always the first letter missing.

Code:
pawn Код:
IRCCMD:botsay(botid, channel[], user[], host[], params[])
{
    if (IRC_IsAdmin(botid, channel, user))
    {
      new msg[128];
        format(msg, sizeof(msg), "%s", params[1]);
        IRC_GroupSay(gGroupID, channel, msg);
    }
    return 1;
}
So when I type "!botday test"

it says "est"
Reply
#2

Try with
pawn Код:
params[2]
Reply
#3

pawn Код:
IRCCMD:botsay(botid, channel[], user[], host[], params[])
{
    if (IRC_IsAdmin(botid, channel, user)) IRC_GroupSay(gGroupID, channel, params);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)