30.05.2013, 22:46
Gracias por responder Josstaa, lo he probado pero sigue sin funcionar :S. Tambien hice asi:
Pero sigue sin funcionar, no se que sera
pawn Код:
stock CargarServers()
{
new query[300], string[128];
for(new i=1; i < MAXSERVERS; i++)
{
format(query, sizeof(query), "SELECT * FROM servers WHERE id='%i'", i);
mysql_query(query);
mysql_store_result();
while(mysql_fetch_row_format(query,"|"))
{
mysql_fetch_field_row(string, "id"); ServersInfo[i][id] = strval(string);
mysql_fetch_field_row(string, "servername"); format(ServersInfo[i][servername],40,string);
mysql_fetch_field_row(string, "adminserver"); ServersInfo[i][adminserver] = strval(string);
mysql_fetch_field_row(string, "servermap"); ServersInfo[i][servermap] = strval(string);
mysql_fetch_field_row(string, "serverstatus"); format(ServersInfo[i][serverstatus],8,string);
servidores++;
}
}
printf("[BFS Info]: %i Servidores cargados.", servidores);
}