20.09.2014, 06:13
Hi,
I'm wondering on how to exceed the limit '/me [action]' command text. So it carries onto the next line making the /me look much neater.
Here's the /me command so far, I know it has something to do with strlen's but I have no idea how to do it myself.
I'm wondering on how to exceed the limit '/me [action]' command text. So it carries onto the next line making the /me look much neater.
Here's the /me command so far, I know it has something to do with strlen's but I have no idea how to do it myself.
Код:
COMMAND:me(playerid, params[])
{
new action[128], string[246];
if(sscanf(params, "s[128]", action)) return SCME(playerid, COLOR_ORANGE, "USAGE: {FFFFFF}/me [action]");
else
{
format(string, sizeof(string), "* %s %s",RPName(playerid),action);
SendNearbyMessage(playerid, COLOR_PURPLE, string, 30.0);
}
return 1;
}


