[14:26:51] [ERROR] cache_get_field_content_int - invalid datatype [14:26:51] [ERROR] cache_get_field_content_int - invalid datatype [14:27:21] [ERROR] CMySQLConnection::Connect - (error #1226) User 'port_2538' has exceeded the 'max_user_connections' resource (current value: 5) [14:27:21] [ERROR] CMySQLConnection::Connect - (error #1226) User 'port_2538' has exceeded the 'max_user_connections' resource (current value: 5)
|
Vocк tem que finalizar a conexгo
Poe assim no OnGameModeExit mysql_close(); |
SendRconCommand("gmx");
public OnGMX() { GameModeExit(); }
public OnGMX() { SendRconCommand("gmx"); }
|
Trocar
Код:
public OnGMX() { GameModeExit(); }
Код:
public OnGMX() { SendRconCommand("gmx"); }
|
[04:48:46] [ERROR] CMySQLConnection::Connect - (error #1226) User 'port_2538' has exceeded the 'max_user_connections' resource (current value: 5) [04:48:46] [ERROR] CMySQLConnection::Connect - (error #1226) User 'port_2538' has exceeded the 'max_user_connections' resource (current value: 5)
CMD:gmx(playerid) {
new string[80];
format(string, sizeof(string), "AdmCmd: %s comeзou um GMX.", PlayerName(playerid) );
SendClientMessageToAll(COLOR_LIGHTRED, string);
SetTimer("OnGMX", 5000,1);
return 1;
}
public OnGMX() {
SalvarCasas();
SalvarORGs();
SalvarServer();
for(new i = 0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i)) {
Kick(i); // player й salvo ao desconectar
}
}
SendRconCommand("gmx");
}
public OnGMX() {
SalvarCasas();
SalvarORGs();
SalvarServer();
for(new i = 0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i)) {
Kick(i); // player й salvo ao desconectar
}
}
mysql_close();
SendRconCommand("gmx");
}
public OnGMX() {
SalvarCasas();
SalvarORGs();
SalvarServer();
mysql_close();
SendRconCommand("gmx");
}