Quote:
Originally Posted by clementj626
Can someone help me with this?
#include <amxmodx>
#include <fakemeta>
public plugin_init( ) {
register_plugin( "Block Flashlight For T", "1.0", "None" );
register_forward( FM_CmdStart, "fwCmdStart" );
}
public fwCmdStart( id, uc_handle, seed ) {
if( get_uc( uc_handle, UC_Impulse ) == 100 ) {
if(get_user_team(id) == 1){
set_uc( uc_handle, UC_Impulse, 0 );
return FMRES_HANDLED;
}
else
{
if (pev(id, pev_effects) & EF_DIMLIGHT)
{
set_pev(id, pev_impulse, 100)
}
}
return FMRES_IGNORED;
}
The error is :
error 001: expected token: "}" but found "-end of file-"
Wth is that? Someone plz help me.
|
I guess it suppose to be like that:
PHP Code:
#include <amxmodx>
#include <fakemeta>
public plugin_init( ) {
register_plugin( "Block Flashlight For T", "1.0", "None" );
register_forward( FM_CmdStart, "fwCmdStart" );
}
public fwCmdStart( id, uc_handle, seed )
{
if( get_uc( uc_handle, UC_Impulse ) == 100 )
{
if(get_user_team(id) == 1)
{
set_uc( uc_handle, UC_Impulse, 0 );
return FMRES_HANDLED;
}
else
{
if (pev(id, pev_effects) & EF_DIMLIGHT)
{
set_pev(id, pev_impulse, 100)
}
}
return FMRES_IGNORED;
}
}
__________________