SA-MP Forums Archive
/announce - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /announce (/showthread.php?tid=110654)



/announce - shoru93 - 27.11.2009

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


Re: /announce - Adamus - 27.11.2009

What is /announce? Show the code.


Re: /announce - shoru93 - 27.11.2009

i cant find it.


Re: /announce - Correlli - 27.11.2009

Open your script and search for "announce".


Re: /announce - shoru93 - 27.11.2009

Im using mAdmin.


Re: /announce - Correlli - 27.11.2009

Show the code.


Re: /announce - Outbreak - 27.11.2009

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.


Re: /announce - GMusicOn - 28.11.2009

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


Re: /announce - shoru93 - 28.11.2009

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?


Re: /announce - Niixie - 28.11.2009

under the command?