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

hmm i see, but ******, you say that i can use new string[128] 3 times? for the player who got killed, the player who killed him, AND the allmessage to tell everyone he got killed?

so like:
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);
so you say this works? this sends still the same messages to the players?

and which should i do?

pawn Код:
reason[128];
or

pawn Код:
if(sscanf(params, "us[128]", targetid, reason))
??

also:
http://forum.sa-mp.com/showpost.php?...15&postcount=6

anyone knows wuts the problem there?
i posted it earlier on other topic, but noone seems to respond to there, cuz its not in first page anymore i think
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)