format function in if statement?
#1

Is it possible to put a format function inside an if statement? I'm trying to do this:
pawn Код:
if(format(query2, sizeof(query2), "SELECT id FROM `gates` WHERE id = '%i'", i));
but the compiler says it's an empty statement
Reply


Messages In This Thread
format function in if statement? - by reckst4r - 22.03.2013, 12:29
Re: format function in if statement? - by reckst4r - 22.03.2013, 12:45
Re: format function in if statement? - by Apenmeeuw - 22.03.2013, 13:49
Re: format function in if statement? - by Apenmeeuw - 22.03.2013, 16:21

Forum Jump:


Users browsing this thread: 3 Guest(s)