01.07.2016, 17:20
Just tried something like that but it won't work.
This will return me empty string which will crash the server as i'm using this in a callremotefuction for a textdraw.
Код:
mysql_format(ban_SQL, string, sizeof(string), "SELECT * FROM `Bans` WHERE `BanID`=%d LIMIT 1",BanID); mysql_pquery(ban_SQL, string); cache_get_field_content(0, "BanExpire",BanInfo[BanID][BanExpire] , ban_SQL,20); if(BanInfo[BanID][BanPerma]) format(BanInfo[BanID][BanExpire],20,"~R~~H~Never"); else format(BanInfo[BanID][BanExpire],20,"%s",string); cache_get_field_content(0, "BanDate",BanInfo[BanID][BanDate] , ban_SQL,20);