warning
#6

It's declared as global but it's better to use local variables for strings (basically arrays) because you can use lower size and it's not going to be a waste.

Replace:
pawn Код:
new string[128];
format(string, sizeof(string), "Please forgive %s for killing the hunted %s.", GetPlayerNameEx(killerid),killerid,GetPlayerNameEx(playerid),playerid);
SendClientMessageToAllEx(COLOR_LIGHTBLUE, string);
with:
pawn Код:
new sz_Msg[83];
format(sz_Msg, sizeof(sz_Msg), "Please forgive %s for killing the hunted %s.", GetPlayerNameEx(killerid),GetPlayerNameEx(playerid));
SendClientMessageToAllEx(COLOR_LIGHTBLUE, sz_Msg);
You had also 2 arguments more but without a placeholder in the format.
Reply


Messages In This Thread
warning - by aboa - 14.02.2014, 05:59
Re: warning - by itsCody - 14.02.2014, 06:10
Re: warning - by aboa - 14.02.2014, 06:12
Re: warning - by Ceez - 14.02.2014, 10:41
Re: warning - by TheFlyer - 14.02.2014, 10:44
Re: warning - by Konstantinos - 14.02.2014, 10:49

Forum Jump:


Users browsing this thread: 2 Guest(s)