crismar Posted March 28, 2014 Share Posted March 28, 2014 Ok so I have this function: function vipHelp(thePlayer) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("VIP")) then outputChatBox("VIP: /vipfood | /vipwater | /viptemp | /vipblood", thePlayer, 0, 222, 0) outputChatBox("VIP: /vipbandit | /vipnano | /vipitems", thePlayer, 0, 222, 0) end end addCommandHandler("viphelp", vipHelp, false) and I keep getting this error in debugscript: vipsystem/client.lua:29: attempt to call global 'getPlayerAccount' (a nil value) The line 29 is this one: if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("VIP")) then What is the problem with it ? I can't get this simple script to work and I got no idea why... Link to comment
crismar Posted March 28, 2014 Author Share Posted March 28, 2014 Ok this is just so epic fail. Thank you a lot Mr.Pres[T]ege <3 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