Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - BANDauthorized

#1
Scripting and Server Management / 'tostring'
Nov 18, 2016, 12:37 AM
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

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; }
}