Mike269 Posted March 8, 2015 Share Posted March 8, 2015 Hello guys I'm working on my spawn selection and cuz I'm using host I'm also using ingame script editor to make it easy, but there's a error, it says like: line 5: unexpected simbol near '[' thanks!<3 local spawnGUI = { } local data = { [ "Weed Slingers" ] = { { "WS Probie", "WS HQ" }, { { [1]=1, [5]=1, [24]=300, [27]=350, [28]=500, [30]=600, [34]=60, [41]=5000} }, { [1]=1, [5]=1, [24]=300, [27]=350, [28]=500, [30]=600, [34]=60, [41]=5000} }, { {231}, {33} }, { {566, -1764, 5}, { 566, -1764, 5} }, { { "WS Probie", "Weed Slingers" }, { "WS HQ", "WS HQ" } } }, [ "Criminals" ] = { { "Arms Dealer" }, { { [1]=1, [31]=500} }, { {231} }, { {404, 1301, 15} }, { { "Arms Dealer", "Criminal" } } }, } local data2 = { { 'Weed Slingers', "WS Probie", "WS HQ" }, { 'Criminals', 'Arms Dealer' }, } local restriction = { ["Weed Slingers"] = { { "WS Probie", "gang", "Weed_Slingers" }, { "WS HQ", "acl", "WS HQ" } }, ["Criminals"] = { { "Arms Dealer", "none" } }, } Link to comment
xXMADEXx Posted March 8, 2015 Share Posted March 8, 2015 Try this: local spawnGUI = { } local data = { [ "Weed Slingers" ] = { { "WS Probie", "WS HQ" }, { { [1]=1, [5]=1, [24]=300, [27]=350, [28]=500, [30]=600, [34]=60, [41]=5000} }, { [1]=1, [5]=1, [24]=300, [27]=350, [28]=500, [30]=600, [34]=60, [41]=5000}, { {231}, {33} }, { {566, -1764, 5}, { 566, -1764, 5} }, { { "WS Probie", "Weed Slingers" }, { "WS HQ", "WS HQ" } } }, [ "Criminals" ] = { { "Arms Dealer" }, { { [1]=1, [31]=500} }, { {231} }, { {404, 1301, 15} }, { { "Arms Dealer", "Criminal" } } } } local data2 = { { 'Weed Slingers', "WS Probie", "WS HQ" }, { 'Criminals', 'Arms Dealer' }, } local restriction = { ["Weed Slingers"] = { { "WS Probie", "gang", "Weed_Slingers" }, { "WS HQ", "acl", "WS HQ" } }, ["Criminals"] = { { "Arms Dealer", "none" } }, } Link to comment
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