02.08.2018, 09:45
Does not work with scanf
But it shows me the following errors:
what should I do
But it shows me the following errors:
Код:
sscanf warning: Strings without a length are deprecated, please add a destination size. sscanf warning: Format specifier does not match parameter count. sscanf warning: Strings without a length are deprecated, please add a destination size. sscanf warning: Format specifier does not match parameter count.
Код:
CMD:n(playerid, params[]) { new string[128],msg[128],pname[MAX_PLAYER_NAME]; GetPlayerName(playerid,pname,sizeof(pname)); if(sscanf(params,"sz",msg)) return SendClientMessage(playerid,COLOR_RED, " /n <Text>"); format(string,sizeof(string),"[Near Players Messages]%s: %s",pname,msg); SendNearMessage( playerid, COLOR_WHITE, string, 15.0 ); return 1; }