unban probelm

Started by kokia, Jul 22, 2015, 03:35 PM

Previous topic - Next topic

Thijn

Removed your try { } catch block from the onPlayerCommand.

kokia


MacTavish

Post the following things

Unban function
A screenshot of your ban table

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

Thijn

Quote from: Beztone on Jul 23, 2015, 08:45 AMPost the following things

Unban function
A screenshot of your ban table
He posted all those.

KAKAN

#19
Post ur onPlayerCommand
oh no

MacTavish

#20
Try it

else if ( cmd == "unban" )
{
if ( IsNoob( player, cmd ) ) return 0;
   else if ( !text ) MessagePlayer("/" + cmd + " <Full Nick>", player );
        else
{
local q = QuerySQL( db, "SELECT * FROM Bans WHERE Name='" + text + "' COLLATE NOCASE" );
if ( GetSQLColumnData(q, 0) )
                {
    QuerySQL(db, "DELETE FROM Bans WHERE Name='" + text + "'");
EchoMessage("Admin " + player.Name + " Has Un-Banned " + text + "");
   Message("Admin " + player.Name + " Has Un-Banned " + text + "");
    }
    else MessagePlayer("Invalid Nick/ID Specified!",player );
    FreeSQLQuery( q );
    }
}


If it didnt work then do as @Thijn says here

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

KAKAN

Yup post ur ban function as well as the ban cmd
oh no

kokia