Checking if strval of string, and make a new line.
#3

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(..);
Reply


Messages In This Thread
Checking if strval of string, and make a new line. - by PaulDinam - 14.02.2013, 11:41
Re: Checking if strval of string, and make a new line. - by zxc1 - 14.02.2013, 12:16
Re: Checking if strval of string, and make a new line. - by RajatPawar - 14.02.2013, 12:17
Re: Checking if strval of string, and make a new line. - by PaulDinam - 14.02.2013, 13:14

Forum Jump:


Users browsing this thread: 2 Guest(s)