06.08.2012, 23:33
Hello, i need help about my commands.
So, the first command is just "/" this.
It should say "USAGE: /say (message) - Enter Your Message"
And the second command is "/say"
So, this is my script about this / command
But it says:
And the script for the second command:
But it says:
So, the first command is just "/" this.
It should say "USAGE: /say (message) - Enter Your Message"
And the second command is "/say"
So, this is my script about this / command
Код:
if (strcmp("/", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_RED, "USAGE /say (message) - Enter A Message"); return 1; }
But it says:
And the script for the second command:
Код:
CMD:say(playerid, params[]) { new text[128], string[148]; if(sscanf(params, "s", text)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /say (message) - Enter A Message"); format(string, sizeof(string), "%s: {FFFFFF}%s", PlayerName(playerid), text); SendClientMessageToAll(GetPlayerColor(playerid), text); return 1; }
But it says: