VanDal Posted January 26, 2015 Share Posted January 26, 2015 guys I need help to fix my spawn menu I want to see the city's screen whene i click in the city button : function onCityClick(button) if source == cityGridList and button == "left" then if guiGridListGetSelectedCount(cityGridList) > 0 then guiGridListClear(classGridList) local selectedRow, selectedCol = guiGridListGetSelectedItem( cityGridList ); local cityName = guiGridListGetItemText( cityGridList, selectedRow, selectedCol ) local cityClasses = cities[cityName] for x, y in pairs(cityClasses) do local row = guiGridListAddRow(classGridList) guiGridListSetItemText(classGridList, row, 1, x, false, false) end guiSetProperty(spawnScreenOKButton, "Disabled", "True") guiSetProperty(skinPrevButton, "Disabled", "True") guiSetProperty(skinNextButton, "Disabled", "True") guiSetText(skinNumberLabel, 1) end end end what can i add for it ? plz help ! this a screen for it http://prntscr.com/5wl1ww Link to comment
VanDal Posted January 26, 2015 Author Share Posted January 26, 2015 thnx but i already get this solution but shit not work i think i dont know where i make it. local cityCameraData = guiGridListGetItemData(source, row, 1) setCameraInterior ( tonumber ( cityCameraData["cameraInterior"] ) or 0 ) setCameraMatrix ( tonumber ( cityCameraData["cityCPosX"] ) or 0, tonumber ( cityCameraData["cityCPosY"] ) or 0, tonumber ( cityCameraData["cityCPosZ"] ) or 0, tonumber ( cityCameraData["cityLookX"] ) or 0, tonumber ( cityCameraData["cityLookY"] ) or 0, tonumber ( cityCameraData["cityLookZ"] ) or 0 ) Link to comment
Moderators IIYAMA Posted January 28, 2015 Moderators Share Posted January 28, 2015 Items are strings, not tables. Link to comment
Moderators IIYAMA Posted January 28, 2015 Moderators Share Posted January 28, 2015 Aha, my mistake, never noticed it before. O_o Link to comment
TAPL Posted January 28, 2015 Share Posted January 28, 2015 Though it written "string" on the wiki ._. http://i.imgur.com/MhJKEZo.png 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