alias does not exists

Started by Cool, May 04, 2016, 02:46 PM

Previous topic - Next topic

Cool


when i add this functions i got error alias does not exists
error line Alias.push( { Nick = GetSQLColumnData( q, 0 ), IP = GetSQLColumnData( q, 1 ), UID = GetSQLColumnData( q, 2 ) } );
i loaded onscriptload LoadAlias();
function LoadAlias()
{
local q = QuerySQL( sqliteDB, "SELECT * FROM Alias" ), i = 0;
while ( GetSQLColumnData( q, 0 ) != null )
{
Alias.push( { Nick = GetSQLColumnData( q, 0 ), IP = GetSQLColumnData( q, 1 ), UID = GetSQLColumnData( q, 2 ) } );
i ++;
GetSQLNextRow( q );
}
FreeSQLQuery( q );
print( "[Loaded] Alias - " + i );
}

rulk

Have you created the array your trying to push elements into ?

Put this at the top of your code
Alias <- [];
We are all god's children.

Cool

Thanks rulk i already put it but in medium now on top its works