SA-MP Forums Archive
2 ifs behind eachother? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 2 ifs behind eachother? (/showthread.php?tid=88105)



2 ifs behind eachother? - hipy - 24.07.2009

hi , how can you do 2 ifs behind eachother
i want like if z > 239080239 { setplayerpos

but i want it like

if mode == 1 z = 23923 and if mode == 2 z = 2323

example
Код:
if(mode == 1)
            {
                if(z < 14.5468)
                    
            {
 
        else if(mode == 2)
          {
                if(z < 176.4747)
 
            {
But how do i do this?:S