14.05.2013, 19:08
everytime i type this command below. it keeps spamming my server.logs with this sscanf warnings everything will be below about it anyways please try and help us fix it thanks alot.
the command i was using this seems to spam alot of the warnings with the sscanf
The server.logs as you can see here below when am typing the command /report id
the command i was using this seems to spam alot of the warnings with the sscanf
Код:
CMD:report(playerid,params[]) { PrintCommand(playerid, "/report", params); new id, reason[35], string[128], sendername[MAX_PLAYER_NAME], name[MAX_PLAYER_NAME]; if(sscanf(params,"uz", id, reason)) return SCM(playerid, COLOR_WHITE,"USAGE: /report [playerid/partofname] [reason]"); if(!IsPlayerConnected(id)) return SCM(playerid, COLOR_GREY,"Invalid player ID"); else { GetPlayerName(id, name,sizeof(name)); GetPlayerName(playerid, sendername, sizeof(sendername)); sendername[strfind(sendername,"_")] = ' '; format(string, sizeof(string), "[ID:%d] %s has reported %s: %s.", playerid, sendername, name, reason); ABroadCast(COLOR_LIGHTRED,string,1); format(string, sizeof(string), "Use /markfalse [id] or /acceptreport [id]"); ABroadCast(COLOR_LIGHTBLUE,string,1); format(string, sizeof(string), "Your report was just send to the online admins, please wait for a reply"); SendClientMessage(playerid,COLOR_LIGHTRED,string); PlayerNeedsHelp[playerid] = 1; return 1; } }
The server.logs as you can see here below when am typing the command /report id
Код:
[20:05:53] [ZCMD] used: /report [20:05:55] [ZCMD] used: /report 0 2 [20:05:55] sscanf warning: 'z' is deprecated, consider using 'S' instead. [20:05:55] sscanf warning: No default value found. [20:05:55] sscanf warning: Strings without a length are deprecated, please add a destination size.