22.11.2011, 10:47
Hey everyone,
This is ZCMD command that I coverted from strcmp one. When it was strcmp everything worked well. But now when I write In-Game: "/b very long text that I'm writing to check if everything is correct." it shows me just: " very long text that I'm writing ". I don't get it why is it so?
This is ZCMD command that I coverted from strcmp one. When it was strcmp everything worked well. But now when I write In-Game: "/b very long text that I'm writing to check if everything is correct." it shows me just: " very long text that I'm writing ". I don't get it why is it so?
pawn Код:
CMD:b(playerid, params[])
{
if (sscanf(params, "s", params)) return SendClientMessage(playerid, COLOR_GREY, "Usage: /b [text]");
new str[128];
new Float:x, Float:y, Float:z;
GetPlayerName(playerid, str, sizeof(str));
GetPlayerPos(playerid, x, y, z);
format(str, sizeof(str), "(( %s says: %s ))", str, params);
ProxDetector(10.0, playerid, str, COLOR_GREY,COLOR_GREY,COLOR_GREY,COLOR_GREY,COLOR_GREY);
SendClientMessage(playerid, COLOR_YELLOW, params);
return 1;
}