20.02.2017, 20:17
(
Последний раз редактировалось michael2572; 21.02.2017 в 20:59.
)
First, I'd recommend updating your MySQL plugin to the latest. Rather than using OnQueryFinish, you can create named callbacks like so:
It might not be working right now because you could be getting back 2+ rows, and your condition checks for exactly 1. The above checks to see if 1 or more row is returned.
Код:
mysql_tquery(connectionHandle, "(your query)", "OnIpChecked", "d", playerid); forward OnIpChecked(playerid); public OnIpChecked(playerid) { if (cache_get_row_count()) { // Block playerid } }