%s in SendClientMessage - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP (
https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (
https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: %s in SendClientMessage (
/showthread.php?tid=407273)
Re: %s in SendClientMessage -
Dan.. - 24.01.2013
Guys, I am not asking for help. I just forgot the parameters for the
format function and I discovered this, purely by accident. I fixed this in like two seconds because I've figured out what was wrong, but since it crashed my server I thought I should report this.
Re: %s in SendClientMessage -
leong124 - 24.01.2013
Quote:
Originally Posted by Basssiiie
Are you sure? I haven't tried it, but with files it doesn't work like that. I had %% once in a string in format, I used strins after that and then I wrote the line into a file. Despite the format and strins functions, it still wrote "%%" into the file.
|
It's weird then, because %% should be recognised as % in format.
Also, I've been using 4 %s for format + SendClientMessage and 2 for format + dialog for a long time in my gamemode, and it works fine.
On topic, I think this is rather a scripting mistake then, just like sending null string to CallLocal/RemoteFunction. My script for inputting % in chat should work, and will not trigger this problem.