About my /shout command there is a weirdo bug.
#1

Guys today i made a command /shout with strcmp and im requesting some help.

Problem: when i do /shout hello
Its gonna display Name: Shouts: **ut** hello !!

My code

Code:
    if(!strcmp(cmdtext, "/shout", true, 5)) 
    {
        if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /shout [text]");
        new str[128];
        GetPlayerName(playerid, str, sizeof(str));
        format(str, sizeof(str), "%s shouts: %s !!", str, cmdtext[4]);
        SendClientMessageToAll(0xFFFFFFAA, str);
        return 1;
    }
What is the problem?

Picture:
Reply


Messages In This Thread
About my /shout command there is a weirdo bug. - by DeeCaay - 09.07.2012, 21:35
Re: strcmp help - by Kindred - 09.07.2012, 21:39
Re : Re: strcmp help - by DeeCaay - 09.07.2012, 21:41
Re: strcmp help - by Vince - 09.07.2012, 21:42
Re : Re: strcmp help - by DeeCaay - 09.07.2012, 21:46

Forum Jump:


Users browsing this thread: 1 Guest(s)