02.09.2017, 14:50
If you declare strings in a array from beginning (well, contents generally), You should put a comma like:
Hope this helped you!
PHP код:
#define RANDOM_MSGS 3
new RandomMsg[RANDOM_MSGS][] = {
"This is first random message",
"Second Random Message",
"Another Random Message"
}; //Well, RANDOM_MSGS is not necessary but is usefull to the send function
//Function:
SendMsg()
{
SendClientMessageToAll(-1,RandomMsg[random(RANDOM_MSGS)]);
return 1;
}
