timer doesnt work
#1

the gate opens,doesnt close.

PHP код:
        if(PlayerInfo[playerid][pMember] == 5) { // porti
            
if(PlayerToPoint(10.0playerid,1144.55141367.778610.4297)) {
                
MoveDynamicObject(gatebogati1123.57871363.238912.51081.5);
                
SetTimer("gatebogaticlose"5000false);
                return 
1;
            }
        } 
PHP код:
function gatebogaticlose() return MoveObject(gatebogati1133.53871363.238912.51081.5); 
Reply
#2

Hi Pepsi,

Give this a try.

PHP код:
forward gatebogaticlose();
public 
gatebogaticlose() return MoveObject(gatebogati1133.53871363.238912.51081.5); 
Reply
#3

thats how function is defined...
Reply
#4

Код:
 
forward gatebogaticlose(); 
public gatebogaticlose() 
{
  MoveDynamicObject(gatebogati, 1133.5387, 1363.2389, 12.5108, 1.5);  
  return true;
}
Reply
#5

wasn't aware function is defined as forward and public. wanted to make sure that you wasn't trying to do it on a stock or plain type.
Reply
#6

You must use MoveDynamicObject
PHP код:
function gatebogaticlose() return MoveDynamicObject(gatebogati1133.53871363.238912.51081.5); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)