Joxte.~ Posted July 23, 2011 Share Posted July 23, 2011 I don't know anything of lua D: I have a problem with the script on my map, i am just building the map, and i can't continue with this problem ): this is the error: My meta: <meta> <info gamemodes="race" type="map" name="[DM] Joxte Vol.2 " author="JoxTe" version="1.0.0" description="cows around the world" /> <map src="DM Joxte Vol2.map" dimension="0" /> <settings> <setting name="#skins" value='[ "cj" ]' /> <setting name="#maxplayers" value="[ 128 ]" /> <setting name="#gamespeed" value="[ 1 ]" /> <setting name="#ghostmode" value='[ "false" ]' /> <setting name="#time" value="22:30" /> <setting name="#vehicleweapons" value='[ "false" ]' /> <setting name="#minplayers" value="[ 0 ]" /> <setting name="#weather" value="[ 1 ]" /> <setting name="#gravity" value="[ 0.008000 ]" /> <setting name="#waveheight" value="[ 0 ]" /> <setting name="#respawntime" value="[ 0 ]" /> <setting name="#locked_time" value="[ false ]" /> <setting name="#duration" value="[ 1800 ]" /> <setting name="#respawn" value='[ "timelimit" ]' /> </settings> <script src="client.lua" type="client" /> </meta> And my script: gravitymarker01 = createMarker(7934.55859375, -1394.7816162109, 1552.03125, "corona", 3, 0, 0, 0, 0) addEventHandler ( "onClientMarkerHit", getRootElement(), Gravity ) end function Gravity ( hitPlayer, matchingDimension ) vehicle = getPedOccupiedVehicle ( hitPlayer ) if hitPlayer ~= Me then return end if source == gravitymarker01 then speedx, speedy, speedz = getElementVelocity ( vehicle ) setElementVelocity(vehicle, 0.35, speedy-0.1, speedz+0. end end Please help Link to comment
gokalpfirat Posted July 23, 2011 Share Posted July 23, 2011 Change your map folder name to " race-mapname " . Note: Withous " Link to comment
Joxte.~ Posted July 24, 2011 Author Share Posted July 24, 2011 really that does not work ): Link to comment
Jaysds1 Posted July 24, 2011 Share Posted July 24, 2011 Ok, don't leave spaces in the map name. Make sure u never spelled meta.xml wrong or the file name wrong... That's all I know... 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