/announce
#1

I typed /announce [text] and after it was closed the windows server and I must turn it on again, why?
Reply
#2

What is /announce? Show the code.
Reply
#3

i cant find it.
Reply
#4

Open your script and search for "announce".
Reply
#5

Im using mAdmin.
Reply
#6

Show the code.
Reply
#7

If its what im thinking of then it uses GameTextForAll or GameTextForPlayer

certain charactors are bugged in the GameText functions. If used they may cause the server to either crash, or display wrongly.

If this is the case then the best solution would be to do a list of invalid charactors, then when /announce [text] is used you can check the string for invalid charactors and return an invalid charactor message to the user.
Reply
#8

It's kinda a easy fix though.

Code:
format(str, sizeof(str), "Mod Message: %s (ID: %d) has announced: '%s'.", pName, playerid, params);
SendModMsg(COLOR_WHITE, str);
return 1;
Normally that should work, params isn't added thats why it crashes
Reply
#9

Quote:
Originally Posted by GMusicOn
It's kinda a easy fix though.

Code:
format(str, sizeof(str), "Mod Message: %s (ID: %d) has announced: '%s'.", pName, playerid, params);
SendModMsg(COLOR_WHITE, str);
return 1;
Normally that should work, params isn't added thats why it crashes
Where exactely should I add that?
Reply
#10

under the command?
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)