Freeze
#1

PHP Code:
public dmgo()  
{   
    for(new 
i=0i<MAX_PLAYERSi++)  
    {  
        
SendEventPMessage(COLOR_ADMCHAT,"GO!GO!GO!");  
        if(
IsPlayerInRangeOfPoint(i,3000000,1387.5414,-17.1491,1000.9135))
        {  
            
TogglePlayerControllable(i,1);  
            return 
1;  
        }  
    }  

i've got a problem , when this public is executed I get unfreezed but other's don't . Can we find a fix ?
Reply
#2

Remove the return; it stops the loop as soon as it finds the first player that's in range. Frankly I don't know why you're using that range check anyway when it's range is about 700 times larger than the SA map.
Reply
#3

PHP Code:
public dmgo()   
{    
    
SendEventPMessage(COLOR_ADMCHAT,"GO!GO!GO!");   
    for(new 
i=0i<MAX_PLAYERSi++)   
    {   
        if(
IsPlayerInRangeOfPoint(i,3000000,1387.5414,-17.1491,1000.9135)) 
        {   
            
TogglePlayerControllable(i,1);   
        }   
    }   
    return 
1;   

Reply
#4

With that range, you'll freeze everyone within the game lol, reduce the range, just a tip.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)