stevensalvaro Posted March 27, 2016 Share Posted March 27, 2016 Hello , Why i just got nill text , but i can save it on mysql .. i think the problem is on get this text Client local motd = getElementData(source, "account:motd") or "" addEvent("motdAjah", true) addEventHandler("motdAjah", root, function () local screenWidth, screenHeight = guiGetScreenSize() triggerEvent("noticeMP", root) as = guiCreateStaticImage (screenWidth/4.5,screenHeight/1.2,600,70,"img/box.png", false) InfoIcon = guiCreateStaticImage ( 15 , 15 , 40, 40 ,"img/icon/motdi.png", false , as) Notice1 = guiCreateLabel( 70, 20, 600, 60, motd, false, as ) guiSetFont(Notice1, text12) guiLabelSetColor(Notice1,221,137,39) setTimer ( function() destroyElement(as) end, 10000, 1 ) end ) Server triggerClientEvent("motdAjah", source) Link to comment
Walid Posted March 27, 2016 Share Posted March 27, 2016 try explain your problem better or post full code here. Link to comment
stevensalvaro Posted March 27, 2016 Author Share Posted March 27, 2016 actually this client didnt import from mysql , local motd = getElementData(source, "account:motd") or "" first argument "getElementData(source,"account:motd") doesnt work , it's gone to or "" but on server side , local motd = getElementData(source, "account:motd") or "" work fine Link to comment
Walid Posted March 27, 2016 Share Posted March 27, 2016 it's Client side so you need to replace source with localPlayer. Link to comment
stevensalvaro Posted March 28, 2016 Author Share Posted March 28, 2016 okay thanks bro 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