SA-MP Forums Archive
Dialogs.. - 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)
+--- Thread: Dialogs.. (/showthread.php?tid=476906)



Dialogs.. - TahaAsif12 - 21.11.2013

Well, my script is huge and i scripting it. But i forgot the next dialog id. My script is having lots of dialogs and i don't know which dialog id shall i put in the next dialog cuz i forgot em. Please Help Me.

If there is a software or a tip plz post it here


Re: Dialogs.. - iJumbo - 21.11.2013

That why i define all my dialogs like:

#define DialogBLA 1
#define DialogLAL 2

and so on


Re: Dialogs.. - Konstantinos - 21.11.2013

Quote:
Originally Posted by TahaAsif12
Посмотреть сообщение
Well, my script is huge and i scripting it. But i forgot the next dialog id. My script is having lots of dialogs and i don't know which dialog id shall i put in the next dialog cuz i forgot em. Please Help Me.

If there is a software or a tip plz post it here
Actually there is an include that it's very useful: https://sampforum.blast.hk/showthread.php?tid=475838

You can use names instead of dialog IDs and in a separate public function (Not inside OnDialogResponse). This can optimise your code and look easier/better to continue with the rest dialogs.


Re: Dialogs.. - TahaAsif12 - 21.11.2013

OK Thanks For Your Help.


Re: Dialogs.. - Pottus - 21.11.2013

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Actually there is an include that it's very useful: https://sampforum.blast.hk/showthread.php?tid=475838

You can use names instead of dialog IDs and in a separate public function (Not inside OnDialogResponse). This can optimise your code and look easier/better to continue with the rest dialogs.
I would go with that option or y_inline/y_dialog I kind of prefer using y_inline/y_dialog because you can embed your dialog code into your function and the best part of it all the variables in that function will be saved when a dialog response is given the function is how can I put it re-instated.


Re: Dialogs.. - Konstantinos - 21.11.2013

I guess I've to check the y_inline/y_dialog out again, but the last time I did (about a year or so) I found it difficult.

I may give a try in the future!


Re: Dialogs.. - Pottus - 21.11.2013

It's really easy to use actually, you just need to wrap your head around the concept.