Continue;
#1

Im checking through available slots (ADMV1)
as soon as 1 is available how can I stop checking through the overs?
because they all could be set to 0, so if it finds ADMV1 as 0, it can stop there and not check ADMV2

pawn Код:
if(dini_Int(SettingsFile,"ADMV1") == 0)
                        {
                            dini_IntSet(SettingsFile,"ADMV1",PlayerInfo[playerid][pCarSel]);
                            FacCar2 = 1;
                        }
                        if(dini_Int(SettingsFile,"ADMV2") == 0)
                        {
                            dini_IntSet(SettingsFile,"ADMV2",PlayerInfo[playerid][pCarSel]);
                            FacCar2 = 2;
                        }
                        if(dini_Int(SettingsFile,"ADMV3") == 0)
                        {
                            dini_IntSet(SettingsFile,"ADMV3",PlayerInfo[playerid][pCarSel]);
                            FacCar2 = 3;
                        }
                        if(dini_Int(SettingsFile,"ADMV4") == 0)
                        {
                            dini_IntSet(SettingsFile,"ADMV4",PlayerInfo[playerid][pCarSel]);
                            FacCar2 = 4;
                        }
I cant use return 1;
as I have code after the checks and it will not get reached.
Reply


Messages In This Thread
Continue; - by HondaCBR - 09.04.2012, 13:33
Re: Continue; - by Jefff - 09.04.2012, 13:52
Re: Continue; - by ViniBorn - 09.04.2012, 14:58

Forum Jump:


Users browsing this thread: 1 Guest(s)