AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Error (https://forums.alliedmods.net/showthread.php?t=224161)

@.SizNeR 08-20-2013 20:10

Error
 
PHP Code:

new const g_szBankClass[] = "Bank";

public 
plugin_init()
{
    
register_forwardFM_Touch"FwNpcTouch" );
}

public 
FwNpcTouchclientiEnt )
{
    if ( !
pev_validiEnt ) || !is_user_connectedclient ) )
        return 
1;
        
    static 
szEntClass32 ];
    
    
entity_get_stringiEntEV_SZ_classnameszEntClasscharsmaxszEntClass ) );
    
    if ( 
equalszEntClassg_szBankClass ) )
    {
        
CmdBankMenuclient );
        
        return 
1;
    }
    
    return 
1;


Error:
PHP Code:

ErrorExpected token","but found ";" on line 71 

The Line Error:
PHP Code:

if ( equalszEntClassg_szBankClass ) ) 


Thanks for help. :)

akcaliberg 08-21-2013 10:22

Re: Error
 
there is nothing wrong. I think you should show your whole code.

^SmileY 08-21-2013 12:36

Re: Error
 
It is this line: CmdBankMenu( client );

because a compiler bug or something

and post full code.


All times are GMT -4. The time now is 15:47.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.