SA-MP Forums Archive
Does anyone know why this happens in mysql? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Does anyone know why this happens in mysql? (/showthread.php?tid=635962)



Does anyone know why this happens in mysql? - EdgarHN - 17.06.2017

Does anyone know why this happens in mysql?


Code:
Code:
		 	R = mysql_query(Servidor[ControlMySQL],"SELECT Nombre,Score FROM usuarios ORDER BY score DESC LIMIT 20",true);
			new name[MAX_PLAYER_NAME],score;
			strcat(lista,""BLANCO"#-Nombre\t"BLANCO"Score\t"BLANCO"Estado\n");
			new i,db = cache_num_rows();
			do{
			contador++;
			cache_get_value_index(i,0,name,sizeof(name));
		 	cache_get_value_int(i,1,score);
			format(linea,sizeof(linea),"#%d-%s\t"LIMA"%d\t%s\n",contador,name,score,ObtenerConeccion(name));
			strcat(lista,linea);
			i++;
			}while(i < db);
			if(!contador)return POFFSET[playerid] = 0 && SendClientMessage(playerid,COLOR_ROJO,"* No hay usuarios en el top score.") && cache_delete®;
			ShowPlayerDialog(playerid,DIALOGO_TOP_SCORE,DIALOG_STYLE_TABLIST_HEADERS,""BLANCO"TOP - "LIMA"Score",lista,"Siguiente","Salir");
			cache_delete®;



Re: Does anyone know why this happens in mysql? - Vince - 17.06.2017

"this". Ok, that is helpful. What the fuck is "this"? Provide context. What is the problem and what is the expected result.