24.07.2015, 23:03
(
Последний раз редактировалось TheMasterNico; 24.07.2015 в 23:36.
)
I see in the wiki the max length in chat is 144, but this command, the length in any text is 125
The text is: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vitae leo feugiat dui mattis luctus sit amet id ligula. Quisque vehicula cras amet."
the strlen print: "message: 125"
їWhy?
The new text: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vitae leo feugiat dui mattis luctus sit amet id ligula. Quisque
pawn Код:
CMD:ooc(playerid, params[])
{
new message[144];
if(sscanf(params, "s[144]", message)) return CmdUsageMessage(playerid, "(/o)oc <Texto>");
printf("message: %d", strlen(message));
GlobalOOCMessage(playerid, message);
return 1;
}
the strlen print: "message: 125"
їWhy?
The new text: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vitae leo feugiat dui mattis luctus sit amet id ligula. Quisque