%s in SendClientMessage
#21

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.
Reply
#22

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)