BorderLine Posted May 26, 2014 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 Actual Nick: [XGN]BorderLine Actual Clan: XLatino Actual Status: Staff, Mod Level 1 (BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline
Moderators Citizen Posted May 26, 2014 Moderators 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"/> The rEvolution is coming ...
BorderLine Posted May 26, 2014 Author 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 Actual Nick: [XGN]BorderLine Actual Clan: XLatino Actual Status: Staff, Mod Level 1 (BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline
Moderators Citizen Posted May 26, 2014 Moderators Posted May 26, 2014 You're welcome The rEvolution is coming ...
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