12.11.2012, 09:58
Whats wrong with this code? it crashes the compiler..
pawn Код:
if(!strcmp(cmdtext, "/open", true)){
MoveObject(impoundgate1, 1901.51, -1865.99, 14.65, 0.00, 0.00, 274.66);
MoveObject(impoundgate2, 1892.43, -1865.98, 14.65, 0.00, 0.00, 266.03);
SendClientMessage(playerid, 0x0000BBAA, "Impound Opened");
return 1;
}
}
if(!strcmp(cmdtext, "/close", true)){
MoveObject(impoundgate1, 1901.51, -1865.99, 14.65, 0.00, 0.00, 0.00));
MoveObject(impoundgate2, 1892.43, -1865.98, 14.65, 0.00, 0.00, 180.00);
SendClientMessage(playerid, 0xAA3333AA, "Impound Closed");
return 1;
}
}
return 1;
}
pawn Код:
new impoundgate1;
new impoundgate2;
pawn Код:
impoundgate1 = CreateDynamicObject(3049, 1901.51, -1865.99, 14.65, 0.00, 0.00, 0.00); //gate1
impoundgate2 = CreateDynamicObject(3050, 1892.43, -1865.98, 14.65, 0.00, 0.00, 180.00); //gate2