Why does this
PHP Code:
const m_iNumRespawns = 365;
public plugin_init( )
{
RegisterHam( Ham_CS_RoundRespawn, "player", "@HamCSRoundRespawn_Pre", 0 );
}
public client_putinserver( id )
{
set_pdata_int( id, m_iNumRespawns, 1 );
}
@HamCSRoundRespawn_Pre( id )
{
log_to_file( "Ham.txt", "Blocking %d",id );
return HAM_SUPERCEDE;
}
Crash my game, and this not?
PHP Code:
const m_iNumRespawns = 365;
public plugin_init( )
{
RegisterHam( Ham_CS_RoundRespawn, "player", "@HamCSRoundRespawn_Pre", 0 );
}
/*public client_putinserver( id )
{
set_pdata_int( id, m_iNumRespawns, 1 );
}*/
@HamCSRoundRespawn_Pre( id )
{
log_to_file( "Ham.txt", "Blocking %d",id );
return HAM_SUPERCEDE;
}
__________________