Reaction Test With Times Tables and Questions
#1

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!
Reply
#2

the answer needs being checked in public OnPlayerText(playerid, text[]) - if you return 0; then, it wont flood in chat.
Reply
#3

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
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)