Script problem: When use script server bugs.
#8

Quote:
Originally Posted by Fantje
Посмотреть сообщение
PHP код:
new autogate;  
Forward:  
forward close();  
On the bottom of the gamemode:  
public 
close()  
{  
MoveObject(autogate,-308.498201508.6586974.33560,3);  
return 
1;  
}  
Under GameModeInit:  
autogate CreateObject(987, -308.498201508.6586974.33560,   0.000000.000000.00000);  
Under OnPlayerUpdate:  
public 
OnPlayerUpdate(playerid)

    if(
PlayerInfo[playerid][dRank] < && IsPlayerInRangeOfPoint(playerid8, -308.498201508.6586974.33560))
    {
        
MoveObject(autogate, -308.498201508.6586968.101093); 
        
SetTimer("close"40000);
    } 
    return 
1;

Why would you want to set a timer then open the gate, why not just open the gate under OnPlayerUpdate?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 9 Guest(s)