ERROR: Must be assigned to an array | with random messages
#2

try this one

pawn Code:
new randomAnswer[4][128] = {
{"Movie server lives!"},
{"Cobra is a hoe!"},
{"Mr.Beer is a hoe!"},
{"Sh4d0w is a hoe!"}
};
new randomMoney[5][0]= {
{4000},
{2000},
{100},
{10000},
{1}
};



public NewContest()
{
    new string[256];
    new ContestAnswer[256];
    new rand = random(sizeof(randomAnswer));
    strmid(ContestAnswer,randomAnswer[rand],0,strlen(randomAnswer[rand]),255);
    new rand2 = random(sizeof(randomMoney));
    new CONTEST_PRIZE = randomMoney[rand2];
    format(string,sizeof string,"The first person to type '%s' first, wins $%d.",ContestAnswer[rand],CONTEST_PRIZE);
    SendClientMessageToAll(COLOR_CONTEST,string);
    return 1;
}
EDIT, now its fixed
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)