General > Developers Corner

Custom command to execute damage logs?

<< < (2/2)

MrPresident:
if ( string.sub( string.lower( text ), 1, 7 ) == "!dmg" ) then


That's matching the first 7 characters of text.. and comparing it to !dmg which is only 4.

if ( string.sub( string.lower( text ), 1, 4 ) == "!dmg" ) then
is what it should be.

Twistedwheelbarrow:
Sorry to re-open this, but I've been stuck on this for days. The command works, but I can't make it work with my  rank system.

My ranks are as follows:

Owner (Superadmin)
Co-Owner
Admin (Admin)
Moderator
Executive
Clan Member
User

I want the damagelogs to be usable by anyone from clan member upwards, or usable by anyone, mid-round, as long as they're dead. I literally can't figure out how this is done... I've crashed the server so much trying to fix things

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given

[0] Board index

Go to full version