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
![](http://img6.imagebanana.com/img/dk33pu5z/samp020.png)
But it says:
![](http://img6.imagebanana.com/img/pri3ffmp/samp021.png)
And the script for the second command:
![](http://img6.imagebanana.com/img/u1j7c8q2/samp018.png)
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; }
![](http://img6.imagebanana.com/img/dk33pu5z/samp020.png)
But it says:
![](http://img6.imagebanana.com/img/pri3ffmp/samp021.png)
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; }
![](http://img6.imagebanana.com/img/u1j7c8q2/samp018.png)
But it says:
![](http://img6.imagebanana.com/img/vhyzw4h0/samp019.png)