sscanf warning: Strings without a length are deprecated, please add a destination size.
#9

ok so i have to do:
pawn Код:
new reason[128];
if(sscanf(params, "us[128]", targetid, reason)) return SendClientMessage(playerid, COLOR_YELLOW, "Correct Usage: /akill [playerid] [reason]");
and that will work?

and how about the:
pawn Код:
format(string, sizeof(string), "ADMIN_EXPLODE: {FF0000}%s {00FF00}has been Exploded by an Admin, Reason: {FF0000}%s", tname, reason);
        SendClientMessageToAll(COLOR_GREEN, string);

        format(string, sizeof(string), "you have Exploded {FF0000}%s, {00FF00}Reason: {FF0000}%s", tname, reason);
        SendClientMessage(playerid, COLOR_GREEN, string);
       
        format(string, sizeof(string), "You have been Exploded by an Admin, Reason: {FF0000}%s", reason);
        SendClientMessage(targetid, COLOR_GREEN, string);
that should work fine like this?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)