TorNix~|nR Posted December 18, 2017 Posted December 18, 2017 Hello guys, I have this code, I don't know why it's not working correctly when I have 2999 zombie kills, I can't join the clan, and when I have 3001 zombie kils, I can't join the clan too help please? local account = getPlayerAccount(source) if getAccountData(account, "Zombie kills") < 3000 then ------------- outputChatBox("fail", source) return end ZI ZOMBIE INFECTION: mtasa://5.196.7.163:22003
koragg Posted December 18, 2017 Posted December 18, 2017 Should work. Try this: if tonumber(getAccountData(account, "Zombie kills")) < 3000 then 1 I love rock/metal/pop but don't mind any other music genre except чалга...that thing sux I also love cars PS I'm friendly
TorNix~|nR Posted December 18, 2017 Author Posted December 18, 2017 Thank you, but it's the same ZI ZOMBIE INFECTION: mtasa://5.196.7.163:22003
koragg Posted December 18, 2017 Posted December 18, 2017 (edited) Try to output in chat the content of the account data. Maybe it's not a number? Do this in a separate function: function testStuff (player) local acc = getPlayerAccount (player) if acc and isGuestAccount (acc) then return end local data = getAccountData (acc, "Zombie kills") if data then outputChatBox (data, player, 255, 0, 0) end addCommandHandler ("testdata", testStuff) Just type "testdata" in chat and tell me what comes up. Server side script btw. Edited December 18, 2017 by koragg 1 I love rock/metal/pop but don't mind any other music genre except чалга...that thing sux I also love cars PS I'm friendly
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