09.07.2012, 21:35
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
What is the problem?
Picture:
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;
}
Picture:



