/B Command
#1

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.

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;
}
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,
Reply


Messages In This Thread
/B Command - by Vasu99 - 01.03.2014, 00:44
Respuesta: /B Command - by CuervO - 01.03.2014, 00:48
Re: /B Command - by rakshith122 - 01.03.2014, 00:51
Re: /B Command - by Vasu99 - 01.03.2014, 00:54
Re: /B Command - by rakshith122 - 01.03.2014, 00:58
Re: /B Command - by Mattakil - 01.03.2014, 04:49

Forum Jump:


Users browsing this thread: 1 Guest(s)