CheiN Posted August 14, 2012 Share 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 Link to comment
Castillo Posted August 14, 2012 Share Posted August 14, 2012 Arguments cannot be numbers. function tts ( 1, vehiclechange, hunter ) -- the 1. Link to comment
CheiN Posted August 14, 2012 Author Share Posted August 14, 2012 Arguments cannot be numbers. function tts ( pickupID, vehiclechange, hunter ) -- the 1. i use should use that? Link to comment
Castillo Posted August 14, 2012 Share Posted August 14, 2012 I guess so, where's 'player' defined? Link to comment
CheiN Posted August 14, 2012 Author Share 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 Link to comment
Castillo Posted August 14, 2012 Share Posted August 14, 2012 Is that a kind of joke? it's the same script with the same problems. Link to comment
TAPL Posted August 14, 2012 Share Posted August 14, 2012 change player to source. you cannot collection none, you need to use geElementData to collection with (+1). Link to comment
INVINCIBLE Posted August 15, 2012 Share 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) Link to comment
CheiN Posted August 15, 2012 Author Share 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 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