SA-MP Forums Archive
fetch text message from OnPlayerText - 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: fetch text message from OnPlayerText (/showthread.php?tid=238433)



fetch text message from OnPlayerText - Jason_Blink - 11.03.2011

Hi there! Im a newbie and i just started to script. Im currently trying to make a register command with some quiz included but i came across a huge problem. I wrote my questions and the possible answers for the quiz in a .ini file like this:

Question1=Here comes the first question
11=first possible answer
12=second possible answer
13=third possible answer
Question2=Here is the second question
21=first possible answer for the second question
.
.
.
and so forth

I managed to make a "for" loop which reads all the questions and displays them on the screen with the possible answers but i need to stop the loop after each question in order to wait for the player's answer. That is my problem. Now how do i solve that? Is there a way of fetching the players text message from the OnPlayerText function? Please help!


Re: fetch text message from OnPlayerText - Jason_Blink - 12.03.2011

can anybody help me out? please!


Re: fetch text message from OnPlayerText - Jason_Blink - 14.03.2011

anyone? please?