Save a value in a Dialog [+REP]
#8

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
extracted_ID should not be an array as the "i" specifier is expecting an integer. Do it just like my example.
Current code lines:
PHP код:
            new extracted_ID;
            
sscanf(inputtext"'LotteryID:'i{s[128]}"extracted_ID);
            
mysql_format(MySQLPipelineiQuerysizeof(iQuery), "SELECT * FROM `lotteries` WHERE `ID` = '%d'"extracted_ID);
            
printf("ID: %i"extracted_ID); 
still prints out ID: 0
:/
Reply


Messages In This Thread
Save a value in a Dialog [+REP] - by Amit1998 - 20.05.2016, 15:58
Re: Save a value in a Dialog [+REP] - by Nero_3D - 20.05.2016, 16:00
Re: Save a value in a Dialog [+REP] - by Amit1998 - 20.05.2016, 16:15
Re: Save a value in a Dialog [+REP] - by Konstantinos - 20.05.2016, 16:19
Re: Save a value in a Dialog [+REP] - by Stinged - 20.05.2016, 16:24
Re: Save a value in a Dialog [+REP] - by Amit1998 - 20.05.2016, 16:43
Re: Save a value in a Dialog [+REP] - by Konstantinos - 20.05.2016, 16:45
Re: Save a value in a Dialog [+REP] - by Amit1998 - 20.05.2016, 17:06
Re: Save a value in a Dialog [+REP] - by Konstantinos - 20.05.2016, 17:09
Re: Save a value in a Dialog [+REP] - by PrO.GameR - 20.05.2016, 19:17

Forum Jump:


Users browsing this thread: 1 Guest(s)