30.09.2014, 19:53
Random Messages don't work like that.
You cannot use double quotes in anything, nor can you use defines in color embedding. Replace my colors in the {} with the ones of your choice, but they have to be the actual color code. Unfortunately, this isn't PHP, and you can't simply use the echo function to print stuff.
pawn Код:
new randomMessages[][] =
{
"Found A Bug? Let Us Know! Report It Here: www.Apocalypse-Z.tk",
" Seen A Hacker/Rulebreaker? Let Us Know With ' /report <id> <reason> ' ." ,
}
pawn Код:
RandomMessages() //There is no need to use "Function" or public or stock or anything like that..
{
new randomMsg = random(sizeof(randomMessages)), string[150];
format(string, sizeof(string), "[{0000FF}SERVER{FFFFFF}]: {E6E6E6} %s", randomMessages[randomMsg]);
SendClientMessageToAll(-1, string);
}