12.09.2012, 06:59
Hello, I have problem with cycles. When my gamemode start - all function start with him but
after these cycles other functions do not work, in particular LoadProperty();(also uses a cycles)
PHP код:
for(new b; b < 2;b++) {
chickfree[b] = CreateDynamicPickup(1318,23,chickinfree[b][0],chickinfree[b][1],chickinfree[b][2]);
CreateDynamic3DTextLabel("Íàçâàíèå: {ffffff}Ïèööåðèÿ\n{03c03c}Âëàäåëåö: {ffffff}Ïðàâèòåëüñòâî\n{03c03c}Òèï: {ffffff}Çàêóñî÷íàÿ",0x03c03cFF, chickinfree[b][0],chickinfree[b][1],chickinfree[b][2]+0.904,15.0);
CreateDynamicMapIcon(chickinfree[b][0],chickinfree[b][1],chickinfree[b][2],29,COLOR_WHITE);
}
for(new h; h < 2;h++) {
new str[128];
fermarazd[h] = CreateDynamicPickup(1275,23,ferma[h][0],ferma[h][1],ferma[h][2],-1,-1,-1,100.0);
fermainfo[h] = CreateDynamicPickup(1239,23,ferma[h][3],ferma[h][4],ferma[h][5],-1,-1,-1,100.0);
CreateDynamicMapIcon(ferma[h][3],ferma[h][4],ferma[h][5],56,COLOR_WHITE);
format(str,sizeof(str),"{ffcc00}Ôåðìà ID: {ffffff}%d\n{ffcc00}Ñòîèìîñòü: {ffffff}500000\n{ffcc00}Èíôîðìàöèÿ: {ffffff}/finfo",h);
CreateDynamic3DTextLabel(str,COLOR_ORANGE, ferma[h][3],ferma[h][4],ferma[h][5]+1,10.0);
}