[Ajuda] invalid row index ('0')
#1

[14:29:43] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
[14:29:43] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
[14:29:43] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
[14:29:43] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
[14:29:43] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')

Provavelmente deve se nos cache_get_field_content oque tem de errado?
Код:
	
function: CheckPlayerBan(playerid)
{
    new Query[300];
	SendClientMessage(playerid,-1, "Checando Listas de banidos...");
	print("erro 1");  //bug
	format(Query, sizeof(Query), "SELECT * FROM `banidos` WHERE `nome` = '%s'", GetNome(playerid));
	mysql_function_query(mysql, Query, true, "r@CheckPlayerBan", "i", playerid);
	print("erro 2");	
	return 1;
}

function: r@CheckPlayerBan(playerid)
{
	new Rows,
	    Fields,
	    Pegar[32],
		Printar[290];

	cache_get_data(Rows,Fields,mysql);
	
	cache_get_field_content(0,"nome",Pegar,mysql);
	format(Banidos[playerid][NomeBan],24,"%s",Pegar);
	cache_get_field_content(0,"admin",Pegar,mysql);
	format(Banidos[playerid][AdminBan],24,"%s",Pegar);
	cache_get_field_content(0,"motivo",Pegar,mysql);
	format(Banidos[playerid][Motivo],45,"%s",Pegar);
	cache_get_field_content(0,"data",Pegar,mysql);
	format(Banidos[playerid][Data],10,"%s",Pegar);
	cache_get_field_content(0,"hora",Pegar,mysql);
	format(Banidos[playerid][Hora],10,"%s",Pegar);
	
	if(!strcmp(Banidos[playerid][NomeBan],GetNome(playerid),false))
	{

		print("chegou aqui");
		format(Printar,sizeof(Printar),"{FFFFFF}Vocк esta Banido...!\nMotivo do Banimento: {FF8200}%s{FFFFFF}\nAdmin responsavel: {FF8200}%s{FFFFFF}\nData: {FF8200}%s{FFFFFF}\nHorбrio: {FF8200}%s\n{FFFFFF}Atenciosamente: Equipe Trucking Live™",
		Banidos[playerid][Motivo],Banidos[playerid][AdminBan],Banidos[playerid][Data],Banidos[playerid][Hora]);
		ShowPlayerDialog(playerid,999,DIALOG_STYLE_MSGBOX,"{FFFFFF}Banido",Printar,"Confirmar","");

		printf("Nome: %s |Admin: %s |Motivo: %s |data %s |hora %s",Banidos[playerid][NomeBan],Banidos[playerid][AdminBan],Banidos[playerid][Motivo],
		Banidos[playerid][Data],Banidos[playerid][Hora]);
		
		Kicka(playerid);
		return 1;
	}
	



	SendClientMessage(playerid,-1," ");
	SendClientMessage(playerid,-1," ");
	return 1;
}
Reply


Messages In This Thread
invalid row index ('0') - by _Play_ - 15.07.2015, 17:30
Re: invalid row index ('0') - by FallweN - 15.07.2015, 20:32
Re: invalid row index ('0') - by _Play_ - 15.07.2015, 20:47
Re: invalid row index ('0') - by FallweN - 15.07.2015, 20:52
Re: invalid row index ('0') - by _Play_ - 15.07.2015, 21:01
Re: invalid row index ('0') - by Juniiro3 - 15.07.2015, 22:59

Forum Jump:


Users browsing this thread: 1 Guest(s)