SA-MP Forums Archive
SendClientMessage Bug - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SendClientMessage Bug (/showthread.php?tid=586422)



SendClientMessage Bug - willttoonn - 22.08.2015

Hi,

If I try to put any "%" in a SendClientMessage without format it, it automatically crashes the sampserver.

Exemple:
SendClientMessage(playerid, -1, "Testing message with 100% crashes the samp server.");


Re: SendClientMessage Bug - Crayder - 22.08.2015

Illegal character, just say percent.

https://en.wikipedia.org/wiki/Uncont..._format_string


Re: SendClientMessage Bug - jamesbond007 - 22.08.2015

use %%


Re: SendClientMessage Bug - Evocator - 22.08.2015

just format it with a double percent sign,
format(x, sizeof (x), "Testing message with 100%% will not crash the samp server.");