[Tutorial] How to make typing contests
#10

Hey dude would something like this 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;
}
Those are,of course,really easy and simple questions,but they are just random and are for demonstration only.
But again,will it work?
Reply


Messages In This Thread
How to make typing contests - by Hiddos - 08.07.2010, 09:47
Re: How to make typing contests - by Lorenc_ - 08.07.2010, 12:31
Re: How to make typing contests - by O_x - 08.07.2010, 12:35
Re: How to make typing contests - by ViruZZzZ_ChiLLL - 08.07.2010, 12:59
Re: How to make typing contests - by Cameltoe - 08.07.2010, 13:18
Re: How to make typing contests - by Hiddos - 08.07.2010, 14:59
Re: How to make typing contests - by Cameltoe - 08.07.2010, 15:52
Re: How to make typing contests - by aNdReSk - 08.07.2010, 22:23
Re: How to make typing contests - by Hiddos - 09.07.2010, 06:36
Re: How to make typing contests - by [XST]O_x - 09.07.2010, 11:14

Forum Jump:


Users browsing this thread: 1 Guest(s)