[lua]
function SetMaxJobs()
CopAmount = 0
print(CopAmount)
end
hook.Add("Initialize", "MaxJobs", SetMaxJobs)
function BecomePoliceOfficer(ply, cmd, args)
if tonumber(CopAmount) >= 6 & !ply:IsAdmin() then
ply:ChatPrint("Sorry, all positions for the police officer are full!")
end
end
concommand.Add("cop", BecomePoliceOfficer)
[/lua]
attempt to perform arithmetic on a boolean value
There's nothing at line 14... Show all the code please
Isn't it &&, not &? (line 11)
[QUOTE=Drakehawke;24539852]Isn't it &&, not &? (line 11)[/QUOTE]
It should be yes, or just plain "and"
Sorry, you need to Log In to post a reply to this thread.