General > Developers Corner
Custom command to execute damage logs?
Twistedwheelbarrow:
I'm trying to add a command called !dmg that prints the damage logs to the console... It won't work.
function DamageLogs( ply, text, _ )
if ( string.sub( string.lower( text ), 1, 7 ) == "!dmg" ) then
ply:ConCommand( "ttt_print_damagelog" )
return false
end
end
hook.Add( "PlayerSay", "Damagelogs )
Any ideas? :3
An Error Has Occurred!
array_keys(): Argument #1 ($array) must be of type array, null given
[0] Board index
Go to full version