Again: error 001: expected token: "-string end-", but found "-identifier-"
#10

Quote:
Originally Posted by TakeiT
Посмотреть сообщение
Random Messages don't work like that.

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);
}
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.
Thanks For Help! +1
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)