08.02.2013, 11:09
Hello there,
No error, but the command does not work.
Help Please
Код:
forward Fire(); public Fire() { new rand = random(MAX_HOUSES - 1); while(!(HouseInfo[rand][hExteriorZ] <= 100 && HouseInfo[rand][hExteriorX] > -2802.389648 && HouseInfo[rand][hExteriorX] < -1523.710327 && HouseInfo[rand][hExteriorY] < 1334.343750 && HouseInfo[rand][hExteriorY] > -216.298019)) { rand++; if(rand == 10) { rand = 1; } } CreateExplosion(HouseInfo[rand][hExteriorX], HouseInfo[rand][hExteriorY], HouseInfo[rand][hExteriorZ], 10, 10.0); return 1; }
Код:
CMD:fire(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 1337) { Fire(); } return 1; }
Help Please