a question, about a problem - 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: a question, about a problem (
/showthread.php?tid=173138)
a question, about a problem -
[IL]HeHu - 01.09.2010
I have this kind of question, just for example a player writes some information in dialog ID 0.
for example here is the dialog:
"The ID you want to send the PM to"
and than the player writes 1 for example, so the ID is 1.
and i want to store this information inside some global var.
and than show the player the next dialog, for example:
"Now write the message itself"
The player should write the message, for example hello.
And than the following needs to happen:
Playerid 1 needs to recieve a message saying hello.
How can i store the number in the var, and than use it in the next dialog.
I hope everyone understood my question, and thanks
Re: a question, about a problem -
[IL]HeHu - 01.09.2010
please, i really need your help here...
Re: a question, about a problem -
LarzI - 01.09.2010
Define the variable outside the callback, and use it to store the ID.
Re: a question, about a problem -
[IL]HeHu - 01.09.2010
tried that, but it always sends the message to ID 0.