MoveObject Error
#9

Or you can write code like this:
PHP код:
#define  MAX_DOORS (4)
CMD:door(playerid,params[])
{
   
    if(
IsLaw(playerid))
    {
        static 
            
bool:door_state[MAX_DOORS]
        ;
        
// Door #1
        
if(IsPlayerInRangeOfPoint(playerid2.0,1487.00000000,-1762.42504883,3284.23608398))
        {
            if (!
door_state[0]) {
                
MoveObject(door0,1487.00000000,-1762.42504883+1.25,3284.23608398,0.50); 
                
door_state[0] = true;
            } else {
                
MoveObject(door0,1487.00000000,-1762.42504883,3284.23608398,0.50); 
                
door_state[0] = false;
            }
        }
        
// Door #2
        // Etc... (Do the same with the other doors)
    
}
    return 
1;

Reply


Messages In This Thread
MoveObject Error - by Jigsaw123 - 29.08.2015, 21:06
Re: MoveObject Error - by jlalt - 29.08.2015, 21:12
Re: MoveObject Error - by Jigsaw123 - 29.08.2015, 21:37
Re: MoveObject Error - by Jigsaw123 - 29.08.2015, 23:19
Re: MoveObject Error - by Logofero - 29.08.2015, 23:21
Re: MoveObject Error - by Jigsaw123 - 29.08.2015, 23:22
Re: MoveObject Error - by Logofero - 29.08.2015, 23:25
Re: MoveObject Error - by Logofero - 29.08.2015, 23:29
Re: MoveObject Error - by Logofero - 29.08.2015, 23:49
Re: MoveObject Error - by jlalt - 30.08.2015, 08:16

Forum Jump:


Users browsing this thread: 1 Guest(s)