PDA

Просмотр полной версии : [Вопрос] помогите перевести код на sql



zgz
05.02.2015, 16:51
mysql_query("SELECT `rentcars` FROM `serverdata`");
mysql_store_result();

new result[16];
mysql_fetch_row(result);
if(!strlen(result)) return 0;
printf("`serverdata`.`rentcars` = %s", result);

new buf[32];
format(buf, sizeof(buf), "p<|>a<i>[%i]", MAX_RENTCARS);
sscanf(result, buf, RentCarLevels);

mysql_free_result();
помогите перевести эту часть кода на sql