14.01.2014, 19:33
Hi,
Thanks for reading.
In the script I'm trying to edit into my own, two commands were included, which will be listed below. One of them works perfectly, but the other one doesn't. I can use it, but it simply says "*Timothy Blake (( ))", nothing more no matter what I write in the command. I will show you screenshots below, along with the code. Keep in mind that the first command is /me, which works perfectly, and that the second is /do.

Thanks for reading.
In the script I'm trying to edit into my own, two commands were included, which will be listed below. One of them works perfectly, but the other one doesn't. I can use it, but it simply says "*Timothy Blake (( ))", nothing more no matter what I write in the command. I will show you screenshots below, along with the code. Keep in mind that the first command is /me, which works perfectly, and that the second is /do.
Код:
CMD:me(playerid, params[])
{
new string[256], name[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, 0xE3E3E3, "USAGE: /me [action]");
format(string, sizeof(string), "* %s %s", name, params);
SendNearbyMessage(playerid, 15, string, COLOR_GREY, COLOR_GREY, COLOR_GREY, COLOR_GREY, COLOR_GREY);
return 1;
}
CMD:do(playerid, params[])
{
new string[256], name[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, 0xE3E3E3, "USAGE: /do [Surroundings]");
format(string, sizeof(string), "* %s (( %s ))", name);
SendNearbyMessage(playerid, 15, string, COLOR_GREY, COLOR_GREY, COLOR_GREY, COLOR_GREY, COLOR_GREY);
return 1;
}



);
