ramzi Posted February 27, 2015 Share Posted February 27, 2015 Hi guys,i have got this code over here,which sets a text down the screen,but it didnt work. Error msg: ERROR: version\text.lua:3: attempt to call global 'guiSetText' (a nil value) lua code: GUIEditor_Label = {} strona = guiSetText (260,571,349,19,"Forums coming soon.",false) guiSetAlpha(strona,1) guiLabelSetColor(strona,255, 0, 0) guiLabelSetVerticalAlign(strona,"top") guiLabelSetHorizontalAlign(strona,"left",false) GUIEditor_Label[1] = guiSetText (715,568,78,17,"DZ RPG V1.0",false) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) Link to comment
JR10 Posted February 27, 2015 Share Posted February 27, 2015 The text.lua script type is not set to client. Edit the meta.xml file and change the script type to 'client'. guiSetText sets the text of an element, but it doesn't create the element. You need to replace it with guiCreateLabel. Link to comment
ramzi Posted March 2, 2015 Author Share Posted March 2, 2015 Well it works ,thnx man. 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