Question about "return"
#7

The best way for me to try to explain this, with the knowledge I have of scripting, is in the case of OnDialogResponse. If you had one part where you were customizing what would happen in a /getgun command where a dialog popped up and gave you different choices, but you wanted a /spawncar command under that same public, you wouldn't want to mix them obviously. So after you were all said and done with /getgun's dialog, you'd add return 1; then start your /spawncar's dialog. I believe return 0; stops the script? Although I'm not sure.
Reply


Messages In This Thread
Question about "return" - by Riwerry - 05.01.2014, 19:46
Re: Question about "return" - by Voxel - 05.01.2014, 19:49
Re: Question about "return" - by RedFusion - 05.01.2014, 19:49
Re: Question about "return" - by Riwerry - 05.01.2014, 19:51
Re: Question about "return" - by RedFusion - 05.01.2014, 20:18
Re: Question about "return" - by Riwerry - 05.01.2014, 20:22
Re: Question about "return" - by K9IsGodly - 05.01.2014, 20:25
Re: Question about "return" - by Vince - 05.01.2014, 20:44

Forum Jump:


Users browsing this thread: 1 Guest(s)