21.08.2017, 15:31
(
Последний раз редактировалось 10MIN; 21.08.2017 в 15:33.
Причина: edited some things in code
)
Why you don't reuse things?
Remember: Reuse things when you can and don't make string arrays very big... Use Letter Counter to count the characters, so you don't have very long strings...
And I don't see anything that can cause the connection to drop...
Код:
public OnPlayerConnect(playerid) { new query[117]; GetPlayerIp(playerid, PlayerInfo[playerid][IPa], 16); mysql_format(c_handle,query, sizeof(query), "SELECT * FROM bans WHERE `pBannedIP` = '%e' OR `pBanned` = '%e'", PlayerInfo[playerid][IPa], GetPlayerNameEx(playerid)); mysql_tquery(c_handle, query, "OnPlayerBanCheck", "i", playerid); mysql_format(c_handle,query, sizeof(query), "SELECT Name, Admin, Reason, unban FROM `tban` WHERE `Name` = '%e' OR `IP` = '%e'", GetPlayerNameEx(playerid),ReturnPlayerIp(playerid)); mysql_tquery(c_handle, query, "tbancheck", "i", playerid);
And I don't see anything that can cause the connection to drop...