sckatchof Posted February 7, 2012 Share Posted February 7, 2012 hi guys i have a problem ERROR :Client.lua:3: attempt to call global 'guiGetScreenSize' local screenwidth, screenheight = guiGetScreenSize () local posw, posh = 269, 255 selfmenu_TabPanel = {} selfmenu_Tab = {} selfmenu_Label = {} selfmenu_window = guiCreateWindow(screenwidth/2-posw/2,screenheight/2-posh/2,269,255,"TNS player Info",false) selfmenu_TabPanel[1] = guiCreateTabPanel(9,25,248,191,false,selfmenu_window) selfmenu_Tab[1] = guiCreateTab("Spielerinfo",selfmenu_TabPanel[1]) selfmenu_Label[1] = guiCreateLabel(10,130,91,16,"bank balance",false,selfmenu_Tab[1]) guiLabelSetColor(selfmenu_Label[1],255,255,255) guiLabelSetVerticalAlign(selfmenu_Label[1],"top") guiLabelSetHorizontalAlign(selfmenu_Label[1],"left",false) and thnx for help Link to comment
Xeno Posted February 7, 2012 Share Posted February 7, 2012 Remove local. Also, I use this because its easier: sx,sy = guiGetScreenSize() loginWindow = guiCreateWindow(0.020*sx,0.290*sy,0.300*sx,0.550*sy,"Userpanel",false) Link to comment
sckatchof Posted February 7, 2012 Author Share Posted February 7, 2012 Remove local.Also, I use this because its easier: sx,sy = guiGetScreenSize() loginWindow = guiCreateWindow(0.020*sx,0.290*sy,0.300*sx,0.550*sy,"Userpanel",false) thnx for help but a same problem Link to comment
JR10 Posted February 7, 2012 Share Posted February 7, 2012 It's not a client side script. Check your meta.xml. Link to comment
sckatchof Posted February 8, 2012 Author Share Posted February 8, 2012 It's not a client side script. Check your meta.xml. Im sure it's in client side Link to comment
Al3grab Posted February 8, 2012 Share Posted February 8, 2012 is InfoPanel the resource name or a folder inside the resource ? Link to comment
Scripting Moderators Sarrum Posted February 8, 2012 Scripting Moderators Share Posted February 8, 2012 Try this: <script src="InfoPanel/client.lua" type="client" /> Link to comment
Gr0x Posted February 8, 2012 Share Posted February 8, 2012 It's not valid XML. It's the good: Link to comment
sckatchof Posted February 9, 2012 Author Share Posted February 9, 2012 thnx guys its work 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