Jump to content

Traffic light script error


Recommended Posts

Posted

When testing a script I made I encountered the following error.

Error.jpg

Why this error pops up is unknown to me, Some help would be appriciated.

My code

  
Function NS() 
      setTrafficLightState ( string green, string red ) 
Function EW() 
  
      setTraffivLightState ( string red, string green ) 
  
  
end 
addCommandHandler ( "NSgreenlight", NS ) 
addCommandHandler ( "EWgreenlight", EW ) 
  

It's not my meta.xml so i'm not gonna post that unleass it's absolutely necesary I guess. :(

It's amazing what people will sell nowadays $500 for an animated gif :|

1333328066.png

Posted
function NS(command, g, r) -- "function" must be with lowercase 
      setTrafficLightState ( tostring(g), tostring(r) ) 
end -- every function must contain an "end" in the end 
  
function EW(command, r, g) 
      setTraffivLightState ( tostring(r), tostring(g) ) 
end 
  
addCommandHandler ( "NSgreenlight", NS ) 
addCommandHandler ( "EWgreenlight", EW ) 

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

No problem :)

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

A new error has come up it seems to be aqward it works every now and then then stops and gives errors.

error2.jpg

It's amazing what people will sell nowadays $500 for an animated gif :|

1333328066.png

Posted

Traffic functions are only 1.1 onwards, you can't use them on lower versions of MTA.

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
Traffic functions are only 1.1 onwards, you can't use them on lower versions of MTA.

Thanks i'm using version1.0.4 I'll update :)

It's amazing what people will sell nowadays $500 for an animated gif :|

1333328066.png

Posted
Traffic functions are only 1.1 onwards, you can't use them on lower versions of MTA.

Thanks i'm using version1.0.4 I'll update :)

The latest server version is 1.0.5

My gta sa version is 1.0 dose that make a difference. :|

It's amazing what people will sell nowadays $500 for an animated gif :|

1333328066.png

  • Moderators
Posted
The latest server version is 1.0.5

My gta sa version is 1.0 dose that make a difference.

No because MTA can only support the 1.0 gta's version and the MTA's version is the MTA's version :roll: so don't take care about it :wink:

The rEvolution is coming ...

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...