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 >
new messages[][] =
{
"[ZP] Test 1",
"[ZP] Test 2",
"[ZP] Test 3"
}
public plugin_init()
{
set_task(2.0, "show_message");
}
public show_message()
{
new sizeof_messages = random(sizeof messages);
client_print(0, print_chat, messages[sizeof_messages]);
set_task(2.0, "show_message");
}
in short , how to show the messages in order from
[ZP] Test 1 until
[ZP] Test 3?
__________________