15.11.2012, 08:56
Hi,
Why my gates is not moving?
In top of my gamemode.
OnGameModeInit
When i press y i get this dialog.
OnDialogResponse
I get this meessage "GATES OPENING", but gates don't move in any side, but how you see X coord is difference.
I have about 700 objects created with CreateObject. When i move others objects they are move well.
Why my gates is not moving?
Код:
new GANGGATES;
OnGameModeInit
Код:
GANGGATES = CreateObject(2990,-2127.19995117,-80.90000153,38.20000076,0.00000000,0.00000000,180.000000); //object(wongs_gate) (1)
Код:
if( PRESSED( KEY_YES ) ) { if( IsPlayerInRangeOfPoint( playerid, 3.0, -2133.19995117,-80.30000305,36.00000000 ) || IsPlayerInRangeOfPoint( playerid, 3.0, -2121.00000000,-81.40000153,36.00000000 ) ) { ShowPlayerDialog(playerid,50,DIALOG_STYLE_LIST,"GATES CONTROL","OPEN\nCLOSE","OK","QUIT"); } }
OnDialogResponse
Код:
if( dialogid == 50 ) { if( response ) { switch( listitem ) { case 0: { SendClientMessage( playerid, COLOR_GREEN,"* GATES OPENING."); MoveObject( GANGGATES,-2117.1999511719,-80.90000153,38.20000076, 7.0 ); } case 1: { MoveObject( GANGGATES,-2127.1999511719,-80.90000153,38.20000076, 7.0 ); } } } return 1; }
I have about 700 objects created with CreateObject. When i move others objects they are move well.