23.01.2014, 16:58
Hi,
I did something that load the reason if a player is banned.
I did this:
But it doesn't load the reason, how should I get the reason from the database ? Thank you !
mysql log:
[18:10:50] [DEBUG] cache_get_row - row: 0, field_idx: 16, connection: 1, max_len: 1
[18:10:50] [WARNING] cache_get_row - no active cache
Anyone could help me with this please ?
I did something that load the reason if a player is banned.
I did this:
Код:
public OnPlayerSpawn(playerid) { if(pInfo[playerid][Bannis] == 1) { new string[128]; cache_get_row(0, 16, pInfo[playerid][RaisonBan]); printf("%s", pInfo[playerid][RaisonBan]); format(string, sizeof(string), "Vous кtes bannis du serveur. Raison: %s", pInfo[playerid][RaisonBan]); SendClientMessage(playerid, Rouge, string); SetTimerEx("KickJoueur", 1000, 0, "d", playerid); } return 1; }
mysql log:
[18:10:50] [DEBUG] cache_get_row - row: 0, field_idx: 16, connection: 1, max_len: 1
[18:10:50] [WARNING] cache_get_row - no active cache
Anyone could help me with this please ?