14.02.2013, 14:18
I made this but this doesn't work good...
when I enter more than 128 it's just shows nothing
when I enter more than 128 it's just shows nothing
Код:
CMD:me(playerid, params[]) { new string[256],action[256], act[256], act2[256]; if(sscanf(params, "s[256]", action)) return SyntaxMSG(playerid, "/me [action]"); if(strval(action) > 128) { strmid(act, action, 0, 128); strmid(act2, action, 128, 256); format(string, sizeof(string), "* %s %s...", GetNameWithMask(playerid), act); ProxDetector(30, playerid, string, COLOR_PURPLE); format(string, sizeof(string), "...%s", act2); ProxDetector(30, playerid, string, COLOR_PURPLE); } else { format(string, sizeof(string), "* %s %s", GetNameWithMask(playerid), action); ProxDetector(30, playerid, string, COLOR_PURPLE); } return 1; }