01.03.2014, 00:44
Hi,
I tried making a command on my own, without anyone else's help although I found it to be quite hard. The command was actually kind of a success, as the only problem is that the name and the actual message has changed places when using the command IG.
I'm thinking there's a really small issue I've done in there, and I'm hoping any of you can see what it is.
Regards,
I tried making a command on my own, without anyone else's help although I found it to be quite hard. The command was actually kind of a success, as the only problem is that the name and the actual message has changed places when using the command IG.
pawn Код:
CMD:b(playerid, params[])
{
new string[256], name[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
if(sscanf(params, "s128", params[0])) return SendClientMessage(playerid, 0xF69521AA, "USAGE: /b [local OOC message]");
format(string, sizeof(string), "(( %s says: %s ))", params[0], name);
SendNearbyMessage(playerid, 15, string, 0xF69521AA, 0xF69521AA, 0xF69521AA, 0xF69521AA, 0xF69521AA);
return 1;
}
Regards,