03.02.2013, 03:49
Example:
This is incorrect. Notice how the variable 'message' has a string length of 120? In the sscanf line, there is nothing involved with the cell size of the variable 'message'. So the correct code would be:
So basically, where ever you're using a string in the sscanf function, make sure you add a string size.
pawn Код:
new message[120];
if(sscanf(params, "s", message)) return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /mycommand [message]");
pawn Код:
new message[120];
if(sscanf(params,"s[120]", message)) ...//etc.

