PHP Code:
enum Users
{
username[32],
password[32]
}
new iCount
new g_Users[512][Users]
public my_function(Handle:Query){
while(SQL_MoreResults(Query)){
SQL_ReadResult(Query, 1, g_Users[iCount][username], 31)
SQL_ReadResult(Query, 2, g_Users[iCount][password], 31)
SQL_NextRow(Query)
iCount++
}
}
or:
PHP Code:
static t_user[32], t_pass[32]
while(SQL_MoreResults(Query)){
SQL_ReadResult(Query, 1, t_user, 31)
SQL_ReadResult(Query, 2, t_pass, 31)
formatex(g_Users[iCount][username], 31, t_user)
formatex(g_Users[iCount][password], 31, t_pass)
SQL_NextRow(Query)
iCount++
}