General > Developers Corner
Why does this not work correctly?
MrPresident:
Is it clientside or server side error?
Yellow or Blue?
SetMaxHealth can only be called serverside.
Wrap the code inside your Think function with this...
if SERVER then
do code here...
end
also.. math in lua is just like regular math. It's more like Algebra in that you can use variables instead of constant numbers.
local a = 10
local b = 5
print( a + b )
output would be 15
An Error Has Occurred!
array_keys(): Argument #1 ($array) must be of type array, null given
[0] Board index
Go to full version