steven1l Posted October 11, 2010 Share Posted October 11, 2010 (edited) Hey i need help i made this script whits a tut on google. but when i installed on my server. i dont get anny error but it dont work. Can somone help me? function winpoints(mapInfo,mapOptions,gameOptions) local alivePlayers = getAlivePlayers() if resources == "race" then if #alivePlayers == 1 then local allAlivePlayers = getAlivePlayers() local player = allAlivePlayers[1] local playerCount = getPlayerCount() local pointsToWin = playerCount *5 setElementData(player, "Points", getElementData(player, "points") + pointsToWin) outputChatBox (getPlayerName(player) .." #FF0000is the final survivor!! He wins " .. tostring(pointsToWin) .." points!",getRootElement(),0,255,0,true) end end end addEventHandler ("onPlayerWasted",getRootElement(),winpoints) addEventHandler ("onPlayerQuit",getRootElement(),winpoints) addEventHandler( 'onPlayerLogin', root, function() local getp = getAccountData ( getPlayerAccount ( source ), "xss.points" ) setElementData(source, "Points", getp) end ) addEventHandler( 'onPlayerQuit', root, function() local setp = getElementData(source, "Points") setAccountData ( getPlayerAccount ( source ), "xss.points", setp ) end ) addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function() exports.scoreboard:addScoreboardColumn("Points") end) this is not the correct way of asking for help! read this topic: viewtopic.php?f=91&t=27027 and then come back and edit your post. yea srrry Edited October 12, 2010 by Guest Link to comment
Castillo Posted October 12, 2010 Share Posted October 12, 2010 this is not the correct way of asking for help! read this topic: https://forum.multitheftauto.com/viewtopic.php?f=91&t=27027 and then come back and edit your post. Link to comment
steven1l Posted October 12, 2010 Author Share Posted October 12, 2010 this is not the correct way of asking for help! read this topic: https://forum.multitheftauto.com/viewtopic.php?f=91&t=27027 and then come back and edit your post. its better now ? Link to comment
dzek (varez) Posted October 12, 2010 Share Posted October 12, 2010 you are using function from race resource.. are you modifying race resource or creating new one? Link to comment
steven1l Posted October 12, 2010 Author Share Posted October 12, 2010 iam using function from race rescource Link to comment
dzek (varez) Posted October 12, 2010 Share Posted October 12, 2010 i wasnt asking if you are using this function, but if you are modifying race resource or creating new one.. you cant access function from race in another resource. Link to comment
steven1l Posted October 12, 2010 Author Share Posted October 12, 2010 the tutoriol said is a resources Link to comment
dzek (varez) Posted October 12, 2010 Share Posted October 12, 2010 ... answer my question or you won't get help Link to comment
steven1l Posted October 12, 2010 Author Share Posted October 12, 2010 iam modifying race resource Link to comment
dzek (varez) Posted October 12, 2010 Share Posted October 12, 2010 And how about this? https://wiki.multitheftauto.com/wiki/Debugging Saw this before? I'm pretty sure you can spot an error easly with debugging. Note: To debug NOT means to enter "debugscript 3" in console - it's something more (generally it is watching actions and variables with outputDebugString) Link to comment
steven1l Posted October 12, 2010 Author Share Posted October 12, 2010 thanxs i gone learn Link to comment
steven1l Posted October 12, 2010 Author Share Posted October 12, 2010 Can i get some more help ? i tryed the debug mode. but there are soo mutch error plz give me some hint how i can make it work Link to comment
Castillo Posted October 12, 2010 Share Posted October 12, 2010 post here the ERRORs you see at the debug script. Link to comment
50p Posted October 13, 2010 Share Posted October 13, 2010 post here the ERRORs you see at the debug script. Or read debugging wiki page over and over again until you understand the most common errors and fix them yourself, and I prefer this solution. Link to comment
steven1l Posted October 14, 2010 Author Share Posted October 14, 2010 Heey. The debug is aroud 100 error? But ts said its oudedate en smothing whits the recourse info Link to comment
Castillo Posted October 14, 2010 Share Posted October 14, 2010 if says its outdated then type /upgrade Link to comment
dzek (varez) Posted October 14, 2010 Share Posted October 14, 2010 some resources is getting damaged after doing upgrade.. Link to comment
steven1l Posted October 14, 2010 Author Share Posted October 14, 2010 /upgrade dont work ingame and consonle to ? Link to comment
dzek (varez) Posted October 14, 2010 Share Posted October 14, 2010 If you are logged as admin you can do "/upgrade" in chat box, "upgrade" in ingame console. You can use server console to do "upgrade" too. Try doing "refreshall" (same ways as before) after. I wouldn't rely on "upgrade" anyway. Link to comment
steven1l Posted October 14, 2010 Author Share Posted October 14, 2010 still outdate ? wanna help me on the server 81.70.143.86:22003 i what there for you 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