Reaction Test With Times Tables and Questions - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Reaction Test With Times Tables and Questions (
/showthread.php?tid=134674)
Reaction Test With Times Tables and Questions -
Kyle - 17.03.2010
I have a script which says
"First one to type %d wins Weapon name here with ammo %d"
But i want it so it can change to like
"Clever? What is %d times %d"
Or maybe questions like
"Clever? What is the capital of %s"
Thanks!
Re: Reaction Test With Times Tables and Questions -
Babul - 17.03.2010
the answer needs being checked in public OnPlayerText(playerid, text[]) - if you return 0; then, it wont flood in chat.
Re: Reaction Test With Times Tables and Questions -
XGh0stz - 17.03.2010
Well this all depends on your questions or methods you're using...
What you can do though is set a simple varible to a question when it's asked so the system knows what question has been asked, example:
pawn Код:
new question;
#define President 1
// Whenever the President Question is asked, use this
question=President;
if(question==President&&strcmp(text,"george washington",true)==0)
{
question=0;
// Your Winning Code
}