BorderLine Posted May 26, 2014 Share Posted May 26, 2014 (edited) Hey all. I have a little problem and idk how to fix it. I was making a code to exports player city then i have this local cCity = exports.global:getCityName(player) outputChatBox(cCity..""..(nick)..": #FFFFFF"..(msg):gsub ( "#%x%x%x%x%x%x", "" ) , getRootElement(), r, g, b, true ) and in global script i have this. function getCityName(player) local x, y, z = getElementPosition ( player ) local city = getZoneName ( x, y, z, true ) .. debugscritp say: ERROR: call: failed to call "global:getCityName"[string "?"] thanks to all Edited May 28, 2014 by Guest Link to comment
Moderators Citizen Posted May 26, 2014 Moderators Share Posted May 26, 2014 make sure you have this in the meta of your global resource (the resource name must be "global") <export function="getCityName" type="server"/> Link to comment
BorderLine Posted May 26, 2014 Author Share Posted May 26, 2014 make sure you have this in the meta of your global resource (the resource name must be "global") <export function="getCityName" type="server"/> now work, i forgot that. thanks citizen Link to comment
Moderators Citizen Posted May 26, 2014 Moderators Share Posted May 26, 2014 You're welcome 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