19.08.2010, 00:52
Okay My /o command is bugged but I cannot see anything wrong :/

When I type /o it just does what is does in the Picture

pawn Код:
if (strcmp("/o", cmdtext, true, 3) == 0)
{
if(!strlen(cmdtext)) return SendClientMessage(playerid, COLOR_YELLOW, "Usage: /o [chat]");
new str[256];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "[OOC] %s: %s", str, cmdtext);
SendClientMessageToAll(COLOR_GREEN, str);
return 1;
}