31.10.2014, 11:17
Quote:
https://sampwiki.blast.hk/wiki/MySQL/R33#mysql_format
https://sampwiki.blast.hk/wiki/MySQL/R33#mysql_pquery https://sampwiki.blast.hk/wiki/MySQL/R33#cache_get_row_int A little example[Not totally sure if this is correct or not, I don't script PAWN for ages] pawn Код:
I hope this helps you out! |
I need to use checkban in order to check if someone is banned and return the answer.
If adding a ban will require the BanCheck to be false (ban doesn't exist) and make a ban I'll need CheckBan to return a value based on the existance of that IP on the bans table.
But in order to get the result of the check, I will have to process it on the OnQueryFinish callback which will do no good because I need 'CheckBan' to return a value-..
long story short: I need to check if the IP exists on the 'bans' table without referring the action to OnQueryFinish.