Jump to content

[HELP] What is the error in the code?


Recommended Posts

Posted

addCommandHandler("vipsurem", function(oyuncu)


    local cid = getElementData(oyuncu, "dbid")
    local vipveri = fromJSON(exports.getRealTime:GAD(cid,"Vip") or toJSON({}))
    print(cid)
    if vipveri then
        local bitis = getRealTime(vipveri.bitis)
        outputChatBox("[!]#ffffffVip["..vipveri.level.."] Bitiş Tarihiniz: "..bitis.monthday.."."..bitis.month.."."..(bitis.year+1900).." - "..bitis.hour..":"..bitis.minute..":"..bitis.second.." ", oyuncu, 0, 255, 0,true)
    end
end)

 

What is the error in the code?

Posted (edited)

If you're running this clientside then oyuncu doesn't exist. Try running it serverside.

Edited by ShayF

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...