Jump to content

exports.global:


Recommended Posts

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 by Guest
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...