Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

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

$
0
0
Code:

C:\Users\user\Desktop\lewl RP\gamemodes\lewl.pwn(2355) : error 029: invalid expression, assumed zero
C:\Users\user\Desktop\lewl RP\gamemodes\lewl.pwn(2355) : warning 215: expression has no effect
C:\Users\user\Desktop\lewl RP\gamemodes\lewl.pwn(2355) : error 001: expected token: ";", but found ")"
C:\Users\user\Desktop\lewl RP\gamemodes\lewl.pwn(2355) : error 029: invalid expression, assumed zero
C:\Users\user\Desktop\lewl RP\gamemodes\lewl.pwn(2355) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664                          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

Line with error
PHP Code:

 if( GetPlayerPing playerid ) > =100 

PHP Code:

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;



Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>