When I execute this script it crashes my server
When I execute noz_warmup on server it crashes!
Any help would be appreciated! PHP Code:
|
Re: When I execute this script it crashes my server
It's because you can't send SayText to ONE_UNRELIABLE while not supplying an index. Index 0 is the server and it can't receive that message.
If index = 0 and the server is dedicated, you should use MSG_BROADCAST. |
Re: When I execute this script it crashes my server
I thought that index 0 is all clients. I will try to change MSG_ONE_UNRELIABLE to MSG_BROADCAST
|
Re: When I execute this script it crashes my server
That's only for client_print native, because this is how it's designed. If 0 is passed it loops all players, it does not send a message with player index = 0.
https://github.com/alliedmodders/amx...xmodx.cpp#L243 |
Re: When I execute this script it crashes my server
If I change MSG_ONE_UNRELIABLE to MSG_BROADCAST, script works fine, but I dont get colors and in messages instead of !g !t and !n there are placed spaces, so in game I get very spaced messages without colors.
Like HTML Code:
[Warmup] some text[Warmup] some text Is there any way to fix this or to use something other instead of msg_broadcast, or to put some index in client_printc ?. |
Re: When I execute this script it crashes my server
I don't know if broadcast would cause that but try looping players instead like HamletEagle said.
|
Re: When I execute this script it crashes my server
I will try to do that with iCount
|
Re: When I execute this script it crashes my server
PHP Code:
|
Re: When I execute this script it crashes my server
Quote:
|
Re: When I execute this script it crashes my server
I solved this by including chatcolor.inc
Chatcolor loops players when 0 is specified. Heres the code: PHP Code:
|
| All times are GMT -4. The time now is 20:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.