[Ajuda] Ajuda fazer jeito certo MYSQL
#1

Alguйm me ajuda a fazer do jeito certo isso aqui do MYSQL?

CarregarServer ongamemodeinit

Код:
CarregarServer() {
	new query[50]; // Nгo precisa ser enorme como vocк tinha colocado; Precisa apenas caber sua query dentro dela
	mysql_format(ConnectMYSQL, query, sizeof(query), "SELECT * FROM server");
	mysql_function_query(ConnectMYSQL, query, true, "Carregar_Server","i");
}

Carregar_Server();
Carregar_Server() {
	new int_dest[6];
	int_dest[0] = cache_get_field_content_int(0, "donoDende");               				donoDende = int_dest[0];
	int_dest[1] = cache_get_field_content_int(0, "donoComplexo");               			donoComplexo = int_dest[1];
	int_dest[2] = cache_get_field_content_int(0, "donoUrubu");               				donoUrubu = int_dest[2];
	int_dest[3] = cache_get_field_content_int(0, "donoMangueira");               			donoMangueira = int_dest[3];
	int_dest[4] = cache_get_field_content_int(0, "donoRocinha");               				donoRocinha = int_dest[4];
	int_dest[5] = cache_get_field_content_int(0, "donoTitanic");               				donoTitanic = int_dest[5];

	cache_get_field_content(0, "god", admlist[god],1,30);
	cache_get_field_content(0, "cm1", admlist[cm1],1,30);
	cache_get_field_content(0, "cm2", admlist[cm2],1,30);
	cache_get_field_content(0, "gm1", admlist[gm1],1,30);
	cache_get_field_content(0, "gm2", admlist[gm2],1,30);
	cache_get_field_content(0, "gm3", admlist[gm3],1,30);
	cache_get_field_content(0, "gm4", admlist[gm4],1,30);
	cache_get_field_content(0, "sa1", admlist[sa1],1,30);
	cache_get_field_content(0, "sa2", admlist[sa2],1,30);
	cache_get_field_content(0, "sa3", admlist[sa3],1,30);
	cache_get_field_content(0, "sa4", admlist[sa4],1,30);
	cache_get_field_content(0, "adm1", admlist[adm1],1,30);
	cache_get_field_content(0, "adm2", admlist[adm2],1,30);
	cache_get_field_content(0, "adm3", admlist[adm3],1,30);
	cache_get_field_content(0, "adm4", admlist[adm4],1,30);
	cache_get_field_content(0, "mod1", admlist[mod1],1,30);
	cache_get_field_content(0, "mod2", admlist[mod2],1,30);
	cache_get_field_content(0, "mod3", admlist[mod3],1,30);
	cache_get_field_content(0, "mod4", admlist[mod4],1,30);
	cache_get_field_content(0, "mod5", admlist[mod5],1,30);
	cache_get_field_content(0, "mod6", admlist[mod6],1,30);
	cache_get_field_content(0, "mod7", admlist[mod7],1,30);
	cache_get_field_content(0, "mod8", admlist[mod8],1,30);
	cache_get_field_content(0, "tutor1", admlist[tutor1],1,30);
	cache_get_field_content(0, "tutor2", admlist[tutor2],1,30);
	cache_get_field_content(0, "tutor3", admlist[tutor3],1,30);
	cache_get_field_content(0, "tutor4", admlist[tutor4],1,30);
	cache_get_field_content(0, "tutor5", admlist[tutor5],1,30);
	cache_get_field_content(0, "tutor6", admlist[tutor6],1,30);
	cache_get_field_content(0, "tutor7", admlist[tutor7],1,30);
	cache_get_field_content(0, "tutor8", admlist[tutor8],1,30);
}
Reply


Messages In This Thread
Ajuda fazer jeito certo MYSQL - by luccagomes15 - 14.11.2015, 09:35
Re: Ajuda fazer jeito certo MYSQL - by luccagomes15 - 14.11.2015, 17:39
Re: Ajuda fazer jeito certo MYSQL - by luccagomes15 - 15.11.2015, 16:18
Re: Ajuda fazer jeito certo MYSQL - by Marlon_Lorran - 15.11.2015, 22:03
Re: Ajuda fazer jeito certo MYSQL - by luccagomes15 - 16.11.2015, 00:10
Re: Ajuda fazer jeito certo MYSQL - by Coringa_Vilao - 16.11.2015, 00:26
Re: Ajuda fazer jeito certo MYSQL - by Marlon_Lorran - 16.11.2015, 01:41
Re: Ajuda fazer jeito certo MYSQL - by luccagomes15 - 16.11.2015, 03:13
Re: Ajuda fazer jeito certo MYSQL - by Marlon_Lorran - 16.11.2015, 03:21
Re: Ajuda fazer jeito certo MYSQL - by Marlon_Lorran - 16.11.2015, 12:22

Forum Jump:


Users browsing this thread: 1 Guest(s)