Blueman Posted May 8, 2011 Posted May 8, 2011 When testing a script I made I encountered the following error. 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
Castillo Posted May 8, 2011 Posted May 8, 2011 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. Education is the most powerful weapon which you can use to change the world.
Blueman Posted May 8, 2011 Author Posted May 8, 2011 Thanks I owe you It's amazing what people will sell nowadays $500 for an animated gif
Castillo Posted May 8, 2011 Posted May 8, 2011 No problem San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Blueman Posted May 8, 2011 Author Posted May 8, 2011 A new error has come up it seems to be aqward it works every now and then then stops and gives errors. It's amazing what people will sell nowadays $500 for an animated gif
Castillo Posted May 8, 2011 Posted May 8, 2011 Traffic functions are only 1.1 onwards, you can't use them on lower versions of MTA. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
BinSlayer1 Posted May 8, 2011 Posted May 8, 2011 not only that, but you also have a typo here: setTraffivLightState ( tostring®, tostring(g) )
Blueman Posted May 9, 2011 Author Posted May 9, 2011 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
Blueman Posted May 9, 2011 Author Posted May 9, 2011 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
Moderators Citizen Posted May 12, 2011 Moderators Posted May 12, 2011 The latest server version is 1.0.5My 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 so don't take care about it The rEvolution is coming ...
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