
LiOneLMeSsIShoT
Members-
Posts
609 -
Joined
-
Last visited
Everything posted by LiOneLMeSsIShoT
-
function setHealth (theplayer) local daAnim = getElementData(theplayer, "animz") local daBlockz = getElementData(theplayer, "blockz") local daAnim = getElementData(root, "animz") local daBlockz = getElementData(root, "blockz") if daBlockz == "Laying" and daAnimz == "Lay_Bac_Loop" then setPedAnimation(theplayer,false) else setPedAnimation (theplayer, "LAYING", "Lay_Bac_Loop") end if Ganim then setElementHealth ( player, health +5) end end setTimer(setHealth, 4000, 1) addCommandHandler ("relax", setHealth) ERRORS! Bad argument @ 'getElementData' [Expected element at argument 1, got nil] Bad argument @ 'getElementData' [Expected element at argument 1, got nil] Warrning: :11: Bad argument @ 'setPedAnimation'
-
Gonna try The same Problem man Check it again....also i feel like there's a problem with SetTimer because i just wanted the health up every 4 sec so i puted this Timer ...fix it if you can..And THANKS ALOT!
-
Gonna try
-
Okay gonna try and tell you Da same ERROR ERROR: Health\Health.lua:3: attempt to call global 'getPedAnimation' (a nil value)
-
Okay gonna try and tell you
-
I made this script to make the player Lay and set his health +5 every 4 seconds...but i got an error..please help Server: function setHealth (theplayer) local Ganim = getPedAnimation (theplayer, Lay_Bac_Loop) local health = getElementHealth(theplayer) local daAnim = getElementData(root, "animz") local daBlockz = getElementData(root, "blockz") if daBlockz == "Laying" and daAnimz == "Lay_Bac_Loop" then setPedAnimation(theplayer,false) else setPedAnimation (theplayer, "LAYING", "Lay_Bac_Loop") end if Ganim then setElementHealth ( player, health +5) end end setTimer(setHealth, 4000, 1) addCommandHandler ("relax", setHealth) ERROR Line: ERROR: Health\Health.lua:3: attempt to call global 'getPedAnimation' (a nil value) Please help me guys ... and THANKS alot
-
ERROR: Failed:WeaponPoints.lua:5: 'then' expected near 'if'
-
I'm tested it...the same thing...gimme an error : attempt to compare number with nil Please help
-
Well...Open mtaserver.config and look down you will see you will find a lot of this resources...if you wanna add resource you have to set resource in the src="" for Example: Example:
-
I can to post the only the Original Labels.. label [2] GUIEditor.label[2] = guiCreateLabel(80, 52, 87, 17, "Points: 0", false, GUIEditor.tab[1]) Label [3] GUIEditor.label[3] = guiCreateLabel(80, 71, 88, 21, "Level: 0", false, GUIEditor.tab[1]) any thing from the script you want to get tell me...but sorry can't post the full script
-
I'm removed my script already...need new...but also i need the script Save the player weapon Stat (Skills) and set the player skin in his First join...Only in his First Join...and Money only in his First Join...Only the First join I mean Not first join...First Login ... Please someone can help me with it ?
-
I made this script to set Levels in Label i made in panel if the another label shows 100 Points....but when i earned 100...Not Showed Level: 1...only Stand in Level: 0 ..please help Client: function WeaponLevels (player, weapon) local Weapon = guiGetText(GUIEditor.label[2]) if Weapon then local Point = tonumber(Weapon) if Point == 100 and weapon == 22 then guiSetText (GUIEditor.label[3],"Level: 1") end end end addEventHandler( "onClientRender",getRootElement(), WeaponLevels)
-
How? ?? what you mean...
-
:123:------- local Nothing = tonumber(getPedStat(killer, 69)) :124:--------- if Nothing <= 100 and weapon == 22 then
-
What??
-
Sure gonna try Look still working with HeadShot...but with any another bodypart shot not work..i used debugscript to know what's the error i got NO ERROR
-
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
-
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...
-
GUIEditor.label[2] = guiCreateLabel(80, 52, 87, 17, "Points: 0", false, GUIEditor.tab[1]) It's the Label...Correct right?
-
Sure gonna try
-
ERROR: :124: attempt to compare nil with number Warning: :123: Bad Argument @ 'getPedStat' :116: Bad Argument @ 'guiSetText' [Expected gui-element at argument 1,got nil :123:...Script local Nothing = tonumber(getPedStat(killer, 69)) :116: Script guiSetText( GUIEditor.label[2],"Points: "..WeaponPoints ); :116: its another function...but it was working 100% before i add this new script for levels...also i think this levels need server side or what?..please help
-
okay..tell me what should i add and i'm gonna add it..or just edit the script if you want...and thanks
-
Sure GUIEditor.label[3] = guiCreateLabel(80, 71, 88, 21, "Level: 0", false, GUIEditor.tab[1])
-
lol!! look :116: is function WeaponPoints() local WeaponPoints = getPedStat( localPlayer, 69 ); guiSetText( GUIEditor.label[2],"Points: "..WeaponPoints ); end addEventHandler( "onClientRender", root, WeaponPoints ); it's the script i use to set player points in the label...it was working 1000000% before i put this new script function WeaponLevels (killer, weapon) local Nothing = tonumber(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 end end addEventHandler( "onClientRender",getRootElement(), WeaponLevels)
-
Okay now Tested your Script...ERROR: WeaponPoints_c.lua:116: Bad Argument @ 'guiSetText' [Expected gui-element at argument 1,got nil