Sex* Posted July 1, 2013 Author Share Posted July 1, 2013 Which line bad argument? setElementDimension ( 1 ) setElementDimension ( 2 ) setElementDimension ( 3 ) setElementDimension ( 4 ) setElementDimension ( 5 ) These are the bad arguments Link to comment
iPrestege Posted July 1, 2013 Share Posted July 1, 2013 You didn't set any element so the function return false . Link to comment
Sex* Posted July 2, 2013 Author Share Posted July 2, 2013 (edited) Tried it...now when I press F1(bindkey) then it already starts falling. Also it gave me error at 76 line: setElementDimension ( source, 0 ) Tried to change this to this: setElementDimension ( localPlayer, 0 ) But didnt work. Edited July 2, 2013 by Guest Link to comment
iPrestege Posted July 2, 2013 Share Posted July 2, 2013 Yes if you want it for the local player. Link to comment
Sex* Posted July 2, 2013 Author Share Posted July 2, 2013 Tried it...now when I press F1(bindkey) then it already starts falling. Also it gave me error at 76 line: setElementDimension ( source, 0 ) Tried to change this to this: setElementDimension ( localPlayer, 0 ) But didnt work. Link to comment
iPrestege Posted July 2, 2013 Share Posted July 2, 2013 OK .. Try to output the player dim : outputChatBox ( tostring ( getElementDimension ( localPlayer ) ) ) Link to comment
Sex* Posted July 2, 2013 Author Share Posted July 2, 2013 Outputs the dimension sucessfully Link to comment
Sex* Posted July 2, 2013 Author Share Posted July 2, 2013 Well: setElementDimension ( localPlayer, 0 ) function getUserMouseSelection() if opened == false then return end if isCursorShowing() == false then return 0 end local posX,posY = getCursorPosition() local mouseX, mouseY = posX * screenWidth, posY * screenHeight if (mouseX >= locA) and (mouseX < locB) and (mouseY < locHeightB) and (mouseY >= locHeight) then if not (selectedMenu == 1) then setElementDimension ( localPlayer, 1 ) outputChatBox ( tostring ( getElementDimension ( localPlayer ) ) ) setElementData (localPlayer,"gamemode","[gamemodes]/[race]/race", true) selectedMenu = 1 selectedImg(6) resetImg(1, true) resetImg(2, true) resetImg(3, true) resetImg(4, true) resetImg(5, true) end elseif (mouseX >= locB) and (mouseX < locC) and (mouseY <= locHeightB) and (mouseY >= locHeight) then if not (selectedMenu == 2) then setElementDimension ( localPlayer, 2 ) outputChatBox ( tostring ( getElementDimension ( localPlayer ) ) ) setElementData (localPlayer,"gamemode","[gamemodes]/[raceDD]/race", true) selectedMenu = 2 selectedImg(5) resetImg(1, true) resetImg(2, true) resetImg(3, true) resetImg(4, true) resetImg(6, true) end function checkDxMenuSelection(button,state) if opened == false then return end if (button == "left") and (state == "down") then if selectedMenu ~= 0 then setElementDimension ( localPlayer, selectedMenu ) end end end Isnt something wrong with something else? Because I cant run race and raceDD both...and it always stops raceDD and starts race... Link to comment
denny199 Posted July 2, 2013 Share Posted July 2, 2013 You still need to edit race hahahahaha You should start with something else... instead of a multigamemode. Link to comment
Sex* Posted July 2, 2013 Author Share Posted July 2, 2013 You still need to edit race hahahahaha You should start with something else... instead of a multigamemode. What do I need to edit..and I have made other scripts Link to comment
denny199 Posted July 2, 2013 Share Posted July 2, 2013 You need to make a costum map loader first. After that you need to edit race for the players be able to switch to that map. Link to comment
Sex* Posted July 2, 2013 Author Share Posted July 2, 2013 You need to make a costum map loader first.After that you need to edit race for the players be able to switch to that map. Aaaaaanddd how I would I do that? Link to comment
denny199 Posted July 2, 2013 Share Posted July 2, 2013 ... My way what I have done once for a multi gamemode. >Read the meta of the file for the .map file and .lua files. >Read the .map file as an XML, load all the object positions in a table. >Loop trough the table and create the objects >Create your costum race (mapname, countdown) For scripts: >Load the scripts on the client side with loadstring >Make wrappers for unloading >Profit Good luck! Link to comment
Sex* Posted July 2, 2013 Author Share Posted July 2, 2013 That's like totally fucked up. Link to comment
gokalpfirat Posted July 2, 2013 Share Posted July 2, 2013 You are falling because of maps objects created in dimension 0. You can see objects dimension in map files too. 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