message_begin crashes server
I'm not sure what I'm doing wrong here:
NOTE: using amx 0.20 RC6 Code:
when this part of the code is run my server crashes and I get the following message tried to create a message with a bogus message type ( 0 ) |
That's probably because gmsgFade is never set to anything. Just creating the variable will automatically initialize it to 0. You need to get the message ID of the fade message before you can use it. So what you need to do is put something like this in plugin_init like this:
Code:
or you could also get rid of gmsgFade variable and make the message_begin like this: Code:
Either way should work, but I don't know if that variable gmsgFade is used elsewhere within your plugin or not. |
ty
yep that was it, thanks.
on a small continuation note though ... this only fades to black for a second then goes back to normal. how can i get it to stay black |
| All times are GMT -4. The time now is 17:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.