SQL Load problem
#4

Hi,

I tried what you told me to do but I think I'm not doing it good.

Код:
public OnPlayerSpawn(playerid)
{
	horloge();
	if(pInfo[playerid][Bannis] == 1)
	{
	
		new string[128], raison[128];
		new rows,fields;
		cache_get_data(rows, fields, mysql);
		if(rows)
		{
		cache_get_field_content(0, "RaisonBan", raison), format(pInfo[playerid][RaisonBan], 128, raison);
		format(string, sizeof(string), "Vous кtes bannis du serveur. Raison: %s", pInfo[playerid][RaisonBan]);
		printf("%s", pInfo[playerid][RaisonBan]);
		SendClientMessage(playerid, Rouge, string);
		SetTimerEx("KickJoueur", 1000, 0, "d", playerid);
		}
		else
		{
			printf("bug");
		}
	}
	SetPlayerHealth(playerid, pInfo[playerid][Vie]);
	SetPlayerArmour(playerid, pInfo[playerid][Armure]);
	return 1;
}
And I tried like this too:

Код:
public OnPlayerSpawn(playerid)
{
	horloge();
	if(pInfo[playerid][Bannis] == 1)
	{
	
		new string[128], raison[128];
		new rows,fields;
		cache_get_data(rows, fields, mysql);
		cache_get_field_content(0, "RaisonBan", raison), format(pInfo[playerid][RaisonBan], 128, raison);
		format(string, sizeof(string), "Vous кtes bannis du serveur. Raison: %s", pInfo[playerid][RaisonBan]);
		printf("%s", pInfo[playerid][RaisonBan]);
		SendClientMessage(playerid, Rouge, string);
		SetTimerEx("KickJoueur", 1000, 0, "d", playerid);
		}

	SetPlayerHealth(playerid, pInfo[playerid][Vie]);
	SetPlayerArmour(playerid, pInfo[playerid][Armure]);
	return 1;
}
Nothing work for me.


And I got in mysql:

[21:46:01] [DEBUG] cache_get_data - connection: 1
[21:46:01] [WARNING] cache_get_data - no active cache
Reply


Messages In This Thread
SQL Load problem - by anou1 - 23.01.2014, 16:58
Re : SQL Load problem - by anou1 - 23.01.2014, 18:47
Re: SQL Load problem - by WopsS - 23.01.2014, 19:16
Re : SQL Load problem - by anou1 - 23.01.2014, 19:34
Re: SQL Load problem - by WopsS - 23.01.2014, 19:48
Re : SQL Load problem - by anou1 - 23.01.2014, 19:51
Re: SQL Load problem - by WopsS - 23.01.2014, 19:53

Forum Jump:


Users browsing this thread: 2 Guest(s)