05.10.2014, 20:28
I am using sscanf and zcmd for this. I am trying to make a me commend, everything works fine except the fact that it only allows me to enter about 20-30 characters before cutting it out. Console also displays a warning.
Here is the code, could someone please tell me where I went wrong for future reference and tell me how to fix it:
Here is the code, could someone please tell me where I went wrong for future reference and tell me how to fix it:
pawn Код:
COMMAND:me(playerid, params[])
{
new action[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(sscanf(params, "ss", action, name))return SendClientMessage(playerid, WHITE, "/me [action]");
else
{
new str[128];
format(str, sizeof(action), "**%s %s**", name, action);
SendClientMessage(playerid, PINK, str);
}
return 1;
}