12.04.2015, 14:33
(
Последний раз редактировалось FasTLinE; 12.04.2015 в 17:43.
)
when i get this error
Код:
[MySQL] Error: Max connections (4) reached, could not connect.
Код:
stock IsPlayerRegistered(playername[]) { new szQuery[512]; format(szQuery, sizeof(szQuery), "SELECT * FROM `users` WHERE `username` = '%s'", playername); SendQuery(szQuery); mysql_store_result(); new regm = mysql_num_rows(); if (!regm){ return false; } mysql_free_result(); return 1; } public OnPlayerRequestSpawn(playerid) { if (IsPlayerRegistered(PlayerName(playerid)) && PlayerInfo[playerid][LoggedIn] == false) { SendNSMessage(playerid, COLOR_RED, "This nickname is registered, you must login before spawning. (/ns login)"); }else{ SendNSMessage(playerid, COLOR_RED, "You must create register first. (/ns register)"); } return 1; }