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