LiOneLMeSsIShoT Posted July 15, 2013 Author Share Posted July 15, 2013 at 116 be sure that the label name is correct GUIEditor.label[2] = guiCreateLabel(80, 52, 87, 17, "Points: 0", false, GUIEditor.tab[1]) It's the Label...Correct right? look Nevermind about this script problem...it's because i was puted guisetVisible... it was making A lot of ERRORS... The Problem now with :123: and :124: codes: :123: :123:Bad Argument @ 'getPedStat' :124: :124:attempt to compare nil with number Link to comment
iMr.3a[Z]eF Posted July 15, 2013 Share Posted July 15, 2013 at write the codes at 123 and 124 Link to comment
LiOneLMeSsIShoT Posted July 15, 2013 Author Share Posted July 15, 2013 at write the codes at 123 and 124 What?? Link to comment
iMr.3a[Z]eF Posted July 15, 2013 Share Posted July 15, 2013 write the function at line 123 and 124 Link to comment
LiOneLMeSsIShoT Posted July 15, 2013 Author Share Posted July 15, 2013 at write the codes at 123 and 124 :123:------- local Nothing = tonumber(getPedStat(killer, 69)) :124:--------- if Nothing <= 100 and weapon == 22 then Link to comment
DNL291 Posted July 15, 2013 Share Posted July 15, 2013 Make sure the killer is a player element and not a nil/false value. Link to comment
LiOneLMeSsIShoT Posted July 15, 2013 Author Share Posted July 15, 2013 Make sure the killer is a player element and not a nil/false value. How? ?? what you mean... Link to comment
DNL291 Posted July 15, 2013 Share Posted July 15, 2013 function WeaponLevels (killer, weapon) if killer then local Nothing = getPedStat(killer, 69) if Nothing <= 100 and weapon == 22 then guiSetText (GUIEditor.label[3], "Level: 1") elseif Nothing <= 200 and Nothing > 100 and weapon == 22 then guiSetText (GUIEditor.label[3], "Level: 2") elseif Nothing <= 300 and Nothing > 200 and weapon == 22 then guiSetText (GUIEditor.label[3], "Level: 3") elseif Nothing <= 400 and Nothing > 300 and weapon == 22 then guiSetText (GUIEditor.label[3], "Level: 4") elseif Nothing <= 500 and Nothing > 400 and weapon == 22 then guiSetText (GUIEditor.label[3], "Level: 5") elseif Nothing <= 600 and Nothing > 500 and weapon == 22 then guiSetText (GUIEditor.label[3], "Level: 6") elseif Nothing <= 700 and Nothing > 600 and weapon == 22 then guiSetText (GUIEditor.label[3], "Level: 7") elseif Nothing <= 800 and Nothing > 700 and weapon == 22 then guiSetText (GUIEditor.label[3], "Level: 8") elseif Nothing <= 900 and Nothing > 800 and weapon == 22 then guiSetText (GUIEditor.label[3], "Level: 9") elseif Nothing <= 1000 and Nothing > 900 and weapon == 22 then guiSetText (GUIEditor.label[3], "Level: 10") end else outputChatBox("'killer' does not exist.") end end addEventHandler( "onClientRender",getRootElement(), WeaponLevels) Try it. Link to comment
Castillo Posted July 15, 2013 Share Posted July 15, 2013 That makes totally no sense, "onClientRender" has no parameters. Link to comment
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