31.01.2011, 14:19
You didn't define idx? Isn't that pretty obvious, lol.
YCMD / ZCMD
Quote:
Also, why are you still using strcmp for commands like that? =/
|
pawn Код:
CMD:b(playerid, params[])
{
new string[128], name[MAX_PLAYER_NAME];
if(isnull(params)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /b [local ooc chat]");
if(strlen(param) > 80) return SendClientMessage(playerid, COLOR_GRAD2, "Message is too long.");
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s Says: (( %s ))", name, params);
ProxDetector(20.0, playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
return 1;
}