Wei Posted March 20, 2012 Share Posted March 20, 2012 (edited) CLOSE Edited March 20, 2012 by Guest Link to comment
Kenix Posted March 20, 2012 Share Posted March 20, 2012 /debugscript 3? https://wiki.multitheftauto.com/wiki/Debugging Link to comment
Wei Posted March 20, 2012 Author Share 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) Link to comment
Kenix Posted March 20, 2012 Share 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. Link to comment
drk Posted March 20, 2012 Share Posted March 20, 2012 You can simply rename the variable from "S.W.A.T" to "SWAT". Link to comment
Wei Posted March 20, 2012 Author Share Posted March 20, 2012 You can simply rename the variable from "S.W.A.T" to "SWAT". I allready did Link to comment
Recommended Posts