09.07.2010, 11:14
Hey dude would something like this work?
Those are,of course,really easy and simple questions,but they are just random and are for demonstration only.
But again,will it work?
pawn Код:
new mQuests[][] = {
{
{"How much is 12+7?"},
{"How much is 8x91?"},
{"How much is 100-91.381?"},
{"What is the square root of 100?"}
};
new mAnswers[][] = {
{"19"},
{"728"},
{"8.619"},
{"10"}
};
public OnPlayerText(playerid,text)
{
if(!strcmp(text,mAnswers[ContestAnswer],true))
{
OnPlayerWinContest(playerid);
}
return 1;
}
But again,will it work?