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.