Help regarding /me command
#3

Quote:
Originally Posted by dominik523
Посмотреть сообщение
When putting specifier 's' you need to put how much characters it will take next to it. And also, /me command would look something like this:
pawn Код:
if(sscanf(params, "s[64]", action))return SendClientMessage(playerid, WHITE, "/me [action]");
        new str[128];
        format(str, sizeof(action), "**%s %s**", name, action);
        SendClientMessage(playerid, PINK, str);
EDIT: I forgot to add this. You don't need two specifiers in your sscanf because you are just taking text after '/me' and not players name.
Thanks, also, why did we need to remove the else statement?
Reply


Messages In This Thread
Help regarding /me command - by Josh23761 - 05.10.2014, 20:28
Re: Help regarding /me command - by dominik523 - 05.10.2014, 20:31
Re: Help regarding /me command - by Josh23761 - 05.10.2014, 20:39
Re: Help regarding /me command - by dominik523 - 05.10.2014, 20:53
Re: Help regarding /me command - by Josh23761 - 05.10.2014, 20:56
Re: Help regarding /me command - by Evocator - 05.10.2014, 20:57
Re: Help regarding /me command - by Josh23761 - 05.10.2014, 21:01
Respuesta: Re: Help regarding /me command - by SickAttack - 05.10.2014, 22:04
Re: Help regarding /me command - by Josh23761 - 06.10.2014, 16:22
Re: Help regarding /me command - by Stinged - 06.10.2014, 16:26

Forum Jump:


Users browsing this thread: