MySQL R38 - UPDATE
#4

Bom, percebi aqui, que cometi um erro bem idiota. Eu estava esquecendo de atualizar os valores do ENUM, fiz isso:
Код:
public OnPlayerDisconnect(playerid)
{
	PlayerData[playerid][skin] = GetPlayerSkin(playerid);
	PlayerData[playerid][dinheiro] = GetPlayerMoney(playerid);

	new salvarPlayerQuery[500];
	mysql_format(conn, salvarPlayerQuery, sizeof(salvarPlayerQuery), "UPDATE players SET usuario='%e', senha='%e', skin=%i, dinheiro=%i, admin_level=%i WHERE id_player=%i", PlayerData[playerid][usuario], PlayerData[playerid][senha], PlayerData[playerid][skin], PlayerData[playerid][dinheiro], PlayerData[playerid][admin_level], PlayerData[playerid][id_player]);
	mysql_query(conn, salvarPlayerQuery, false);
	
	if(mysql_errno() != 0) print("Erro");
	return 1;
}
Porйm agora o cуdigo printa la no server_log "Erro"(do mysql_errno())
Reply


Messages In This Thread
MySQL R38 - UPDATE - by AndreOliveira - 26.04.2014, 03:34
Re: MySQL R38 - UPDATE - by djgabrielway - 26.04.2014, 11:24
Re: MySQL R38 - UPDATE - by Locky_ - 26.04.2014, 14:31
Re: MySQL R38 - UPDATE - by AndreOliveira - 26.04.2014, 15:00
Respuesta: MySQL R38 - UPDATE - by AndreOliveira - 26.04.2014, 16:03
Re: MySQL R38 - UPDATE - by AndreOliveira - 26.04.2014, 17:04

Forum Jump:


Users browsing this thread: 1 Guest(s)