30/09/2022 14:38
por que isso está acontecendo com o meu printf?
CODE:
Código:
[13:52:19] drugfactoryList[0] = 306
[13:52:19] 2rugfactoryList[1] = 676
[13:52:19] 2€ugfactoryList[2] = 1133
[13:52:19] 2€mgfactoryList[3] = 1134
[13:52:19] 2€mnfactoryList[4] = 1272
[13:52:19] 2€mnøactoryList[5] = 1309
[13:52:19] 2€mnøctoryList[6] = 1382
[13:52:20] 2€mnøftoryList[7] = 1506
[13:52:20] 2€mnøfâoryList[8] = 1580
[13:52:20] 2€mnøfâ,ryList[9] = 1711
[13:52:20] 2€mnøfâ,¯yList[10] = 1713
[13:52:20] 2€mnøfâ,¯±List[11] = 1723
[13:52:20] 2€mnøfâ,¯±»ist[12] = 1755
[13:52:20] 2€mnøfâ,¯±»Ûst[13] = 1756
[13:52:20] 2€mnøfâ,¯±»ÛÜt[14] = 1757
[13:52:20] 2€mnøfâ,¯±»ÛÜÝ[15] = 1805
[13:52:20] 2€mnøfâ,¯±»ÛÜÝ
16] = 1830
[13:52:20] 2€mnøfâ,¯±»ÛÜÝ
&i] = 17
[13:52:20] 2€mnøfâ,¯±»ÛÜÝ
&a] = 18
[13:52:20] 2€mnøfâ,¯±»ÛÜÝ
&aË = 19
[13:52:20] 2€mnøfâ,¯±»ÛÜÝ
&aËá= 20
[13:52:20] 2€mnøfâ,¯±»ÛÜÝ
&aËáâ 21
[13:52:20] 2€mnøfâ,¯±»ÛÜÝ
&aËáâ÷22
[13:52:20] 2€mnøfâ,¯±»ÛÜÝ
&aËáâ÷i
CODE:
Código:
new drugFactoryTotal;
new drugfactoryList[] = {};
stock Push_Drugfactory_List(bizzid) {
printf("drugfactoryList[%i] = %i", drugFactoryTotal, bizzid);
drugfactoryList[drugFactoryTotal] = bizzid;
drugFactoryTotal++;
}
Código:
public Load_Business() {
new row_count;
if(!cache_get_row_count(row_count))
printf("[CarregarBusiness] MYSQL couldn't retrieve row count");
else {
// printf("There are %d rows in the current result set.", row_count);
for(new i = 0; i < row_count; i++) {
new bizzid = i + 1;
cache_get_value_int(i, "bizzType", BizzInfo[bizzid][bizzType]);
if(BizzInfo[bizzid][bizzType] == 37) Push_Drugfactory_List(bizzid);
}
}
}