Lil problem with if
#1

Alright so the problem is simple

1. It allows you to unlock vehicles that have faction ID: 0
2. Doesnt allow you to unlock vehicles that are above Faction 0 eventho if your faction ID is the same

PHP код:
if(VehInfo[somecar][VehFaction] != && VehInfo[somecar][VehFaction] == AccInfo[playerid][PlayerFaction] ||
            
VehInfo[somecar][VehFaction] == 0
IE: what should it work as? You can unlock your own cars & cars that have Faction ID:0 (works), and if you are part of faction ID:1 for example, you will be able to unlock faction cars that have same faction ID as yours (Faction ID's start from 1)
Reply


Messages In This Thread
Lil problem with if - by Squirrel - 18.01.2016, 01:43
Re: Lil problem with if - by Sew_Sumi - 18.01.2016, 02:54
Re: Lil problem with if - by Squirrel - 18.01.2016, 15:30

Forum Jump:


Users browsing this thread: 3 Guest(s)