Xagul
deathzot.net
- Joined
- Jun 30, 2008
- Messages
- 1,295
- Solutions
- 3
- Reaction score
- 1,043
Hello Ive now spent about 3 hours looking through these forums for some explanations and I just cant seem to find anything.
Basicly myself and a lot of others are having problems with the Banishment functions (doAddAccountBanishment)
When I use:
doAddAccountBanishment(3)
The account with that ID gets banned correctly for the default ban length defined in the servers config.lua however it does not tell why they were banned who banned them and all that stuff.
Using this syntax found in LUA_FUNCTIONS:
doAddAccountBanishment(accId, length, reason, action, comment, admin)
I have used CTRL + Y to ban the same player and then checked the database for correct values that are certain to be correct since CTRL + Y works properly and what I have came up with is:
doAddAccountBanishment(3, 3600, 12, 2, "test", 2)
When used it does not throw an error however the player does not recieve a ban and when you look at the database the values recorded are all blank including the date expires which is what I am assuming is the problem so what I am wondering is...
a) is the function not working properly?
b) am I using the wrong syntax?
c) does this function not support length/reason/action/coment/admin?
d) does anyone know how to get this function to work as it should?
Basicly myself and a lot of others are having problems with the Banishment functions (doAddAccountBanishment)
When I use:
doAddAccountBanishment(3)
The account with that ID gets banned correctly for the default ban length defined in the servers config.lua however it does not tell why they were banned who banned them and all that stuff.
Using this syntax found in LUA_FUNCTIONS:
doAddAccountBanishment(accId, length, reason, action, comment, admin)
I have used CTRL + Y to ban the same player and then checked the database for correct values that are certain to be correct since CTRL + Y works properly and what I have came up with is:
doAddAccountBanishment(3, 3600, 12, 2, "test", 2)
When used it does not throw an error however the player does not recieve a ban and when you look at the database the values recorded are all blank including the date expires which is what I am assuming is the problem so what I am wondering is...
a) is the function not working properly?
b) am I using the wrong syntax?
c) does this function not support length/reason/action/coment/admin?
d) does anyone know how to get this function to work as it should?
Last edited: