Kenix Posted March 20, 2012 Posted March 20, 2012 /debugscript 3? https://wiki.multitheftauto.com/wiki/Debugging
Wei Posted March 20, 2012 Author Posted March 20, 2012 /debugscript 3?https://wiki.multitheftauto.com/wiki/Debugging nothing. when i start script shows only error: [2012-03-20 18:00:27] ERROR: RPG\rpg.lua:45: attempt to index global 'S' (a nil value) [2012-03-20 18:00:27] ERROR: RPG\rpg.lua:6: attempt to index global 'S' (a nil value)
Kenix Posted March 20, 2012 Posted March 20, 2012 https://wiki.multitheftauto.com/wiki/Scr ... troduction viewtopic.php?f=148&t=40809 Also what is it???!! S.W.A.T = createTeam ( "S.W.A.T", 255, 255, 255 ) You can not call as a variable name. Your should create like this: Example S = { W = { A = { } } } S.W.A.T = createTeam ( "S.W.A.T", 255, 255, 255 ) print( S.W.A.T ) --> userdata You need learn lua.
drk Posted March 20, 2012 Posted March 20, 2012 You can simply rename the variable from "S.W.A.T" to "SWAT".
Wei Posted March 20, 2012 Author Posted March 20, 2012 You can simply rename the variable from "S.W.A.T" to "SWAT". I allready did
Recommended Posts