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 My scripts: toptimes on scoreboard (server21) Screen on login(scren) Score on scoreboard (score)
Castillo Posted August 14, 2012 Posted August 14, 2012 Arguments cannot be numbers. function tts ( 1, vehiclechange, hunter ) -- the 1. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
CheiN Posted August 14, 2012 Author Posted August 14, 2012 pickupID then :L? My scripts: toptimes on scoreboard (server21) Screen on login(scren) Score on scoreboard (score)
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? My scripts: toptimes on scoreboard (server21) Screen on login(scren) Score on scoreboard (score)
Castillo Posted August 14, 2012 Posted August 14, 2012 I guess so, where's 'player' defined? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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 My scripts: toptimes on scoreboard (server21) Screen on login(scren) Score on scoreboard (score)
Castillo Posted August 14, 2012 Posted August 14, 2012 Is that a kind of joke? it's the same script with the same problems. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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) INVINCIBLE's Script Page: My Scripts Page --------------------- User Profile script : %100 - Show pictures and pm me User profile system (1) User profile system (2) ------------- Need paid scripter just pm me i will accept every job!
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 My scripts: toptimes on scoreboard (server21) Screen on login(scren) Score on scoreboard (score)
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