hey i'm doing this:
copy(g_Cache,511,"SELECT ip FROM mods WHERE ID = 1")
SQL_ThreadQuery(g_SqlTuple,"SelectHandle",g_C ache)
and the results i get its:
10
and in the table its: 10.0.0.1:27015
thats is the public
PHP Code:
public SelectHandle(FailState,Handle:Query,Error[],Errcode,Data[],DataSize)
{
if(FailState == TQUERY_CONNECT_FAILED)
return set_fail_state("Could not connect to SQL database.")
else if(FailState == TQUERY_QUERY_FAILED)
return set_fail_state("Query failed.")
if(Errcode)
return log_amx("Error on query: %s",Error)
new DataNum
while(SQL_MoreResults(Query))
{
DataNum = SQL_ReadResult(Query,0)
ColorChat(0, NORMAL, "%d", DataNum)
SQL_NextRow(Query)
}
return PLUGIN_CONTINUE
}
how can i do i get all the ip?
10.0.0.1:27015?