I NEED HELP
#5

If you declare strings in a array from beginning (well, contents generally), You should put a comma like:
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;

Hope this helped you!
Reply


Messages In This Thread
I NEED HELP - by n00blek - 02.09.2017, 14:41
Re: I NEED HELP - by n00blek - 02.09.2017, 14:45
Re: I NEED HELP - by Vince - 02.09.2017, 14:48
Re: I NEED HELP - by Luke_James - 02.09.2017, 14:50
Re: I NEED HELP - by 10MIN - 02.09.2017, 14:50
Re: I NEED HELP - by n00blek - 02.09.2017, 14:52

Forum Jump:


Users browsing this thread: 1 Guest(s)