Quote:
Originally Posted by Pixels^
Quote:
Originally Posted by gesior7
Quote:
Originally Posted by Pixels^
That's very inefficient.
|
It seems that this function does exactly, what it was suppose to do.
Look at the example:
Код:
#include <a_samp.inc>
public OnPlayerCommandText(playerid, cmdtext[]) {
if(strcmp(cmdtext[1],"test",true)>2)
return SMessage(playerid,0xFFFFFFFF,cmdtext[6],25);
return 1;
}
Max length is 25.
in game:
|
pawn Код:
stock pMessage(string[],maxlen) { new str[128]; format(str,maxlen,string); print(str); return 1; }
pawn Код:
pMessage("HELLLO",2); //prints "HE"
|
Do you understand what the SMessage function does? It's word wrap, not string cutting...