CheiN Posted August 14, 2012 Posted August 14, 2012 exports.dxscoreboard:scoreboardAddColumn( "Top Times" ) function tts ( 1, vehiclechange, hunter ) setElementData ( player, "Top Times", + 1 ) end addEventHandler ( "onPlayerPickUpRacePickup", tts ) ¿im good? i think that nope, so if im bad Can help me? Thx and srry for take your time
Castillo Posted August 14, 2012 Posted August 14, 2012 Arguments cannot be numbers. function tts ( 1, vehiclechange, hunter ) -- the 1.
CheiN Posted August 14, 2012 Author Posted August 14, 2012 Arguments cannot be numbers. function tts ( pickupID, vehiclechange, hunter ) -- the 1. i use should use that?
CheiN Posted August 14, 2012 Author Posted August 14, 2012 (edited) exports.dxscoreboard:scoreboardAddColumn( "Top Times" ) function tts ( pickupID, vehiclechange, hunter ) setElementData ( player, "Top Times", + 1 ) end addEventHandler ( "onPlayerPickUpRacePickup", tts, root ) let me try i want learn.... U-U Edited August 14, 2012 by Guest
Castillo Posted August 14, 2012 Posted August 14, 2012 Is that a kind of joke? it's the same script with the same problems.
TAPL Posted August 14, 2012 Posted August 14, 2012 change player to source. you cannot collection none, you need to use geElementData to collection with (+1).
INVINCIBLE Posted August 15, 2012 Posted August 15, 2012 Try this : exports.scoreboard:scoreboardAddColumn( "Top Times") function someoneReachedHunter(number, sort, model) if sort == "vehiclechange" and model == 425 then top = getElementData(source,"Top Times") or 0 setElementData(source,"Top Times",top+1) end end addEvent("onPlayerPickUpRacePickup",true) addEventHandler("onPlayerPickUpRacePickup",getRootElement(),someoneReachedHunter)
CheiN Posted August 15, 2012 Author Posted August 15, 2012 the invisible reply is good and work but when i pick the hunter, when i enter in a hunter pickup cloud it appears in scoreboard: top times: 3 or 4 or 5 etc PM: sorry for 2ble posting
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