The way I found out about this error, is with one of my scripts for promoting people. This user sent me an email saying that the server announced that he had been promoted to moderator, and didn't notice this change in his access rights or on the scoreboard. So being interested in the fact that it could be my script, I check my logs produced by the script.
"promotions"
{
"<li> Player: (D.O.A.)LemmingguidedmissileTWM has been promoted to mod for exceptional behaviour"
"<li> Player: (D.O.A.)LemmingguidedmissileTWM has been promoted to mod for exceptional behaviour"
"<li> Player: (D.O.A.)LemmingguidedmissileTWM has been promoted to mod for exceptional behaviour"
"<li> Player: (D.O.A.)LemmingguidedmissileTWM has been promoted to mod for exceptional behaviour"
"<li> Player: (D.O.A.)LemmingguidedmissileTWM has been promoted to mod for exceptional behaviour"
}
As you see, the script has attempted to promote him five times, and for him that means he's been on the server for 10hrs straight without receiving a warning level from my antispam script. So he obviously deserves this promotion. I could promote him by myself, but I need to figure out a work around for this error, so I can implement a fix into my script.
Here's the line that promotes him:
local topromote = string.format( "%q",ply:Nick())
local promotegroup = string.format( "%q", players.players[ply:Nick()].promote)
Msg( "ulx adduser " ..topromote.. " " ..promotegroup.. " \n" )
game.ConsoleCommand( "ulx adduser " ..topromote.. " " ..promotegroup.. "\n")
the message prints:
ulx adduser "(D.O.A.)LemmingguidedmissileTWM" "mod"
Any ideas?
==EDIT==
Maybe help with using the ULib function for adding users?