Returning. - 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: Returning. (
/showthread.php?tid=358551)
Returning. -
RedFusion - 10.07.2012
I have a dialog with different cases.
pawn Код:
case 0: ShowPlayerDialog(playerid,bicyclesshop,2,"Bicycles","Bike\nBMX\nMountain Bike","OK","Back"), PlayerPlaySound(playerid, 1083, 0, 0, 0);
Does it matter if i use return here or not? like Return ShowPlayerDialog(.......
Re: Returning. -
coole210 - 10.07.2012
If there is code that runs after that, I wouldn't return it. Is there a specific reason why you would HAVE to return it?
Re: Returning. -
RedFusion - 10.07.2012
I don't know. There's just a whole lot of other cases after this one.
Re : Returning. -
Naruto_Emilio - 10.07.2012
You should declare the dialogs id of this ShowPlayerDialog and then you may use it , otherwise I never done it before.
Re: Returning. -
coole210 - 10.07.2012
If it's not absolutely needed, then don't add it. No stress required!
If you want me to determine if a return is needed I would need to see more code..
Re: Returning. -
RedFusion - 10.07.2012
As i said: More cases, only. Which look almost the same as the one i posted here.
Re: Returning. -
Vince - 10.07.2012
Not necessary, cases are not fall through in Pawn.