AN ERROR HAS OCCURED [the index 'tostring' does not exist]
CALLSTACK
*FUNCTION [FindPlayerClan()] Functions.nut line [258]
LOCALS
[string] "BANDauthorized"
[player] INSTANCE
[this] TABLE
[player] INSTANCE
[this] TABLE
[player] INSTANCE
[this] TABLE
CALLSTACK
*FUNCTION [FindPlayerClan()] Functions.nut line [258]
LOCALS
[string] "BANDauthorized"
[player] INSTANCE
[this] TABLE
[player] INSTANCE
[this] TABLE
[player] INSTANCE
[this] TABLE
Code Select
function FindPlayerClan( player, string )
{
string = string;
q <- QuerySQL( db, "SELECT * FROM ClanUsers WHERE Clans='" + GetTag( string ) + "' COLLATE NOCASE" );
db <- GetSQLColumnData( q, 1 ).tostring(); //258
TCC <- TruncateClan;
if ( db.tolower().find( TCC( string.tolower() ) ) ) { PrivMessage( "Your Nick " + TCC( string ) + ", Clan: " + GetTag( string ), player ); } else { ClanKick( player ); return null; }
}