19.06.2009, 14:14
I got no error, but still it doesn't work
Код:
if(strcmp("/aopen", cmdtext, true, 7) == 0) { MoveObject(agate,321.292,-1188.194,71.049,5.0); SendClientMessage(playerid, 0xAA3333AA, "Close the gate by typing: '/aclose' or by waiting 3 sec."); return 1; } if(strcmp("/aclose", cmdtext, true, 8) == 0) { MoveObject(agate,321.292,-1188.194,78.049,5.0); SendClientMessage(playerid, 0xAA3333AA, "You have closed the gate"); return 1; } return 0; } public CloseGate() { SetTimer("CloseGate", 3000, 0); MoveObject(agate,321.292,-1188.194,78.049,5.0); return 1; }