[FilterScript] Easy to use random server message system - other then others.
#14

Quote:
Originally Posted by Kwarde
Посмотреть сообщение
Nice but ehm, one question:
Why do you use the define 'CURRENT_MESSAGES'. Why don't you make a variable or something that'll be counted +1 when you use an "AddRandomMessage". eg.
pawn Код:
new something;

stock AddRandomMessage(text[])
{
    something++;
    for(new m; m < something; m++)
    //BLABLABLA
    return 0;
}

public SendRandomMessage()
{
    new rand = random(something);
    SendClientMessageToAll(MESSAGE_COLOR, RM[rand]);
}
Good point, but you can't update the amount of strings:
pawn Код:
new bla = 2;
new var[bla];
bla = 3;
'var' stretches from 0 to 1.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)