14.02.2013, 12:17
You must be doing something like this, right?
pawn Код:
new text[128];
if(sscanf(params,"s[128]",text)) return ...
if(strlen(text)>50)) return SCM(playerid, -1 , "Your message cannot be longer than 50 characters.."); /*Add this line*/
format(text, 128, "%s %s",GetPlayerName(..), text);
SCM(..);