MySQL DATETIME
#9

Just tried something like that but it won't work.
Код:
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);
This will return me empty string which will crash the server as i'm using this in a callremotefuction for a textdraw.
Reply


Messages In This Thread
MySQL DATETIME - by Runn3R - 28.09.2014, 08:09
Re: MySQL DATETIME - by TheNerka - 28.09.2014, 08:19
Re: MySQL DATETIME - by Runn3R - 28.09.2014, 08:24
Re: MySQL DATETIME - by TheNerka - 28.09.2014, 08:26
Re: MySQL DATETIME - by Runn3R - 28.09.2014, 08:28
Re: MySQL DATETIME - by Runn3R - 28.09.2014, 08:47
Re: MySQL DATETIME - by AroseKhanNiazi - 01.07.2016, 16:25
Re: MySQL DATETIME - by PrO.GameR - 01.07.2016, 17:11
Re: MySQL DATETIME - by AroseKhanNiazi - 01.07.2016, 17:20
Re: MySQL DATETIME - by AroseKhanNiazi - 02.07.2016, 17:12

Forum Jump:


Users browsing this thread: 1 Guest(s)