Jump to content

Small Script Help


Ryan1010

Recommended Posts

Posted

give us more information, do you get any error? warning anything? /debugscript 3 in game to put debug on.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted (edited)

Well, i tried a differnt way..

I get '[2010-09-27 16:34:46] ERROR: race_misc/racegm_server.lua:10: attempt to call global 'setElementCollisionsEnabled' (a nil value)'

Edited by Guest
Posted

you are doing the script client side right? cause setElementCollisionsEnabled function its only client side.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

this is totally wrong

setElementCollisionsEnabled won't work on table (v is table for you)

also you are mixing up serverside (getMapName()) with client side (setElementCollisionsEnabled())

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted
How do I fix it?

maybe go back to mta wiki and re-think all again?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

if everything is wrong, you have to rewrite it all, so Solid's reply was a good one

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...