opnaiC Posted June 17, 2016 Posted June 17, 2016 showammo1 = getPedAmmoInClip (localPlayer,getPedWeaponSlot(localPlayer)) showammo2 = getPedTotalAmmo(localPlayer)-getPedAmmoInClip(localPlayer) if not getPedWeapon (getLocalPlayer()) == 0, 1 then dxDrawBorderedText("".. showammo2 ,x*1150, y*75, x*1205, y*40,tocolor(255, 255, 255,255),1.0,"pricedown","right","top",false,false,false) dxDrawBorderedText("".. showammo1 ,x*1212, y*75, x*750, y*40,tocolor(190, 190, 190,255),1.0,"pricedown","left","top",false,false,false) end Its not working but idk why. Any idea ? It only a part of a function its not the hole ..
KariiiM Posted June 19, 2016 Posted June 19, 2016 He said: It only a part of a function its not the hole .. that's why we need to know the known errors
roaddog Posted June 19, 2016 Posted June 19, 2016 Change your line 4 with this if not ( getPedWeapon(getLocalPlayer()) == 0 or getPedWeapon(getLocalPlayer()) == 1) then
KariiiM Posted June 19, 2016 Posted June 19, 2016 lol, I didn't take attention about this line if not getPedWeapon (getLocalPlayer()) == 0, 1 then it will return an error
#RooTs Posted June 19, 2016 Posted June 19, 2016 you can also do this way local Weapon = getPedWeapon(getLocalPlayer()) if not Weapon == 0 or Weapon == 1 or Weapon == 2 or Weapon == 3 or Weapon == 4 then
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now