[HELP]sscanf warning: Strings without a length are deprecated, please add a destination size.
#3

Quote:

new otherplayer, filestring[79], string[128], reason[128];

it should be like that

PHP код:
        new otherplayer[128], filestring[79], string[128], reason[128]; 
and this line
Quote:

if(sscanf(params, "ss", otherplayer, reason)) return SendClientMessage(playerid, COLOR_GRAY,"Usage: /oban [playername] [reason]");

should be like that

PHP код:
if(sscanf(params"s[128]s[128]"otherplayerreason)) return SendClientMessage(playeridCOLOR_GRAY,"Usage: /oban [playername] [reason]"); 
The point is that you didn't add size for the string..
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)