[SOLVED] Perform role-specific order?
Hi , I created this basic code to display messages to all players, works fine however I was wondering if you have to run them in the order in this case I used random as in the example:
Code:
#include < amxmodx > |
Re: [HELP] Perform role-specific order?
PHP Code:
|
Re: [HELP] Perform role-specific order?
Sorry, I didn't fully read your post. Untested.
PHP Code:
|
Re: [HELP] Perform role-specific order?
Did not work.
|
Re: [HELP] Perform role-specific order?
It probably worked perfectly fine but nobody will be in the server 2 seconds after the map starts. Try changing 2.0 to something larger so that you know you will be in the server when it prints the message.
|
Re: [HELP] Perform role-specific order?
the message appears but continues randomized, appears when you start the round, then no longer appears.
|
Re: [HELP] Perform role-specific order?
Quote:
If you've changed the code significantly, you'll need to post your code. Also, what exactly are you trying to do? You're description is either extremely vague or wrong. |
Re: [HELP] Perform role-specific order?
This short code I did was to display messages to all players automatically, just that they want to appear in the order, not random. Sorry if not I could not explain.
|
Re: [HELP] Perform role-specific order?
So, the code you posted will show a message every 2 seconds . . that is very quick.
Anyways, to make the messages go in order, you just need to add a global variable and then in the show_message() do: Code:
global_variable = global_variable % sizeof(messages) |
Re: [HELP] Perform role-specific order?
I try this, but this only displaying the last message, if [ZP] Test 3
Code:
#include < amxmodx > |
| All times are GMT -4. The time now is 22:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.