SA-MP Forums Archive
Problem messages - 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)
+--- Thread: Problem messages (/showthread.php?tid=665673)



Problem messages - KamilPolska - 12.04.2019

How to make messages in the order such as message 1, message 2, message 3 and again message 1 and so on. No randoms.
Code:
SendClientMessageToAll(-1, RandomMSG[random(sizeof(RandomMSG))]);
printf("TEXT: %s", RandomMSG[random(sizeof(RandomMSG))]);



Re: Problem messages - khRamin78 - 13.04.2019

PHP Code:
new order;
OnGamemodeInIt >> order 0;
Your Func:
>>
SendClientMessageToAll(-1RandomMSG[order]);
printf("TEXT: %s"RandomMSG[order]);
order++;
if(
order sizeof(RandomMSG)) order 0



Re: Problem messages - KamilPolska - 13.04.2019

Thanks!