Returning.
#1

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(.......
Reply
#2

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?
Reply
#3

I don't know. There's just a whole lot of other cases after this one.
Reply
#4

You should declare the dialogs id of this ShowPlayerDialog and then you may use it , otherwise I never done it before.
Reply
#5

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..
Reply
#6

As i said: More cases, only. Which look almost the same as the one i posted here.
Reply
#7

Not necessary, cases are not fall through in Pawn.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)