09.05.2017, 18:27
Olб, eu estava testando um debug e notei algo, olhe:
pq ele nгo executa o ultimo printf dizendo carregado? geralmente quando coloco um printf dps de um for ele nгo printa, alguem sabe o pq?
PHP код:
stock verificaritens()
{
printf("........Iniciado");
new rand;
for( new i = 0; i <= sizeof(itens); i++ ){
if(var[i] == 1) { continue; }
rand = random(3);
switch(rand){
case 0: { CreateObject(2768, itens[i][0], itens[i][1], itens[i][2], 0, 0, 300); }
case 1: { CreateObject(2814, itens[i][0], itens[i][1], itens[i][2], 0, 0, 300); }
case 2: { CreateObject(19570, itens[i][0], itens[i][1], itens[i][2], 0, 0, 300); }
}
var[i] = 1;
}
printf("........Carregado");
return 1;
}