Error 001: expected token: ";", but found ")"
#2

PHP код:
LoadObjectsForPlayer(playerid

    if( 
IsPlayerConnected playerid ) )//checking if the player is connected 
    

        
TogglePlayerControllableplayeridfalse ); // Freezing the player 
        
if( GetPlayerPing playerid ) < 100 
        { 
            
SetTimerEx"ObjectsLoaded"30000"i"playerid ); 
        }
//the value of Time should be increased upon increasing ping 
        
if( GetPlayerPing playerid ) >=100 
        { 
            
SetTimerEx"ObjectsLoaded"30000"i"playerid ); 
        }
// i stands for integer we passing playerid to function 
        
if( GetPlayerPing playerid ) >= 200 && GetPlayerPing playerid )<300 
        { 
            
SetTimerEx"ObjectsLoaded"32000"i"playerid ); 
        } 
        if( 
GetPlayerPing playerid ) >=300 && GetPlayerPing playerid )<500 
        { 
            
SetTimerEx"ObjectsLoaded"37000"i"playerid ); 
        } 
        if( 
GetPlayerPing playerid ) >= 500
        { 
            
SetTimerEx"ObjectsLoaded"40000"i"playerid ); 
        } 
        else 
        { 
            
SetTimerEx"ObjectsLoaded"50000"i"playerid ); 
        } 
    } 
    return 
1

forward ObjectsLoaded(playerid); 
public 
ObjectsLoaded(playerid

    if( 
IsPlayerConnected playerid ) ) return TogglePlayerControllableplayeridtrue ); 
    return 
1

EDIT: If that won't help write it like this
PHP код:
LoadObjectsForPlayerplayerid )
{
    if( 
IsPlayerConnected playerid ) )
    {
        
TogglePlayerControllableplayerid);
        if( 
GetPlayerPing playerid ) < 100 )      { SetTimerEx"ObjectsLoaded"30000"i"playerid );}
           if( 
GetPlayerPing playerid ) >= 100 ) { SetTimerEx"ObjectsLoaded"30000"i"playerid ); }
        if( 
GetPlayerPing playerid ) >= 200 && GetPlayerPing playerid )<300 ) { SetTimerEx"ObjectsLoaded"32000"i"playerid ); }
        if( 
GetPlayerPing playerid ) >= 300 && GetPlayerPing playerid )<500 ) { SetTimerEx"ObjectsLoaded"37000"i"playerid ); }
        if( 
GetPlayerPing playerid ) >= 500) { SetTimerEx"ObjectsLoaded"40000"i"playerid ); }
        else { 
SetTimerEx"ObjectsLoaded"50000"i"playerid ); }
    }
    return 
1;

Reply


Messages In This Thread
Error 001: expected token: ";", but found ")" - by Noris - 19.05.2016, 05:44
Re: Error 001: expected token: ";", but found ")" - by Micko123 - 19.05.2016, 06:03
Re: Error 001: expected token: ";", but found ")" - by ]Rafaellos[ - 19.05.2016, 06:20
Re: Error 001: expected token: ";", but found ")" - by Noris - 19.05.2016, 06:29

Forum Jump:


Users browsing this thread: 1 Guest(s)