22.01.2011, 01:11
Here is how has made:
Here on this line gives an error:
DestroyObject(Objs[i]);
Код:
new Objs[9]; Objs[0] = CreateObject(18690, 280.996704, 1876.698120, 14.849337, 90.2407954, -2.57831008, 1.71887339); Objs[1] = CreateObject(18690, -2794.0922851563, -12.043877601624, 9.0996828079224, 0, 0, 270.67565917969); Objs[2] = CreateObject(18690, -2793.998046875, -13.272877693176, 9.0931529998779, 0, 0, 270.67565917969); Objs[3] = CreateObject(18690, -2793.4816894531, -15.914033889771, 6.9843993186951, 0, 0, 272.66064453125); Objs[4] = CreateObject(18690, -2794.2727050781, -17.160186767578, 9.304069519043, 0, 0, 270.67565917969); Objs[5] = CreateObject(18690, -2792.0141601563, -17.860973358154, 6.7548785209656, 0, 0, 270.67565917969); Objs[6] = CreateObject(18690, -2794.1572265625, -12.692586898804, 12.16376209259, 0, 0, 270.67565917969); Objs[7] = CreateObject(18690, -2794.1821289063, -17.23037147522, 12.207744598389, 0, 0, 270.67565917969); Objs[8] = CreateObject(18690, -2781.8154296875, -12.107675552368, 6.7634339332581, 0, 0,
Код:
if(strcmp(cmd, "/delete", true) == 0) { for(new i = 0; i < 9; i++) { DestroyObject(Objs[i]); } return 1; }
DestroyObject(Objs[i]);