warning(please help)
#2

Example:
pawn Код:
new message[120];
if(sscanf(params, "s", message)) return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /mycommand [message]");
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:
pawn Код:
new message[120];
if(sscanf(params,"s[120]", message)) ...//etc.
So basically, where ever you're using a string in the sscanf function, make sure you add a string size.
Reply


Messages In This Thread
warning(please help) - by Geeboi_Mehdi - 03.02.2013, 00:02
Re: warning(please help) - by Threshold - 03.02.2013, 03:49
Re: warning(please help) - by Geeboi_Mehdi - 03.02.2013, 03:54

Forum Jump:


Users browsing this thread: 1 Guest(s)