Jump to content

Bug in glitch System Help me


E-mail

Recommended Posts

Hi guys when the images say have to be in UTF-8??

see the client side ....

local CrouchImg = guiCreateStaticImage ( 0.005, 0.74, 0.055, 0.075,"2.png", true) 
local WeapSts = 0 
function ACB_onClientPlayerWeaponFireFunction( ) 
    if WeapSts == 0 then 
    WeapSts = 1 
    toggleControl ( "crouch",false  ) 
    toggleControl ( "sprint",false  ) 
    guiStaticImageLoadImage ( CrouchImg,"1.png" ) 
    setTimer ( ACB_Timer, 425,1 ) 
    end  
end 
addEventHandler ( "onClientPedWeaponFire", getRootElement(),ACB_onClientPlayerWeaponFireFunction ) 
function ACB_Timer() 
    toggleControl ( "crouch",true  ) 
    toggleControl ( "sprint",true   ) 
    guiStaticImageLoadImage ( CrouchImg, "2.png" ) 
    WeapSts = 0 
end 
  

and /debugscript say

C\1.png:1:'='expected near '

Link to comment
local CrouchImg = guiCreateStaticImage ( 0.005, 0.74, 0.055, 0.075, "2.png", true) 
local WeapSts = 0 
  
function ACB_onClientPlayerWeaponFireFunction( ) 
    if WeapSts == 0 then 
    WeapSts = 1 
    toggleControl ( "crouch",false ) 
    toggleControl ( "sprint",false ) 
    guiStaticImageLoadImage ( CrouchImg,"1.png" ) 
    setTimer ( ACB_Timer, 425,1 ) 
    end 
end 
addEventHandler ( "onClientPlayerWeaponFire", getRootElement(), ACB_onClientPlayerWeaponFireFunction ) 
  
function ACB_Timer() 
    toggleControl ( "crouch",true ) 
    toggleControl ( "sprint",true ) 
    guiStaticImageLoadImage ( CrouchImg, "2.png" ) 
    WeapSts = 0 
end 

on the event i think you maybe should use getLocalPlayer() Instead getRootElement()

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...