Miczu z takimi schizami to w ogóle nie bawiłem się
Tu jest przykład gdzie będzie błąd:
public on_damage(id)
{
if(!get_pcvar_num(bulletdamage))
return PLUGIN_HANDLED
new attacker = get_user_attacker(id)
#if defined DAMAGE_RECIEVED
if ( is_user_connected(id) && is_user_connected(attacker) )
{
new damage = read_data(2)
set_hudmessage(255, 0, 0, 0.45, 0.50, 2, 0.1, 4.0, 0.1, 0.1, -1)
ShowSyncHudMsg(id, g_MsgSync2, "%i^n", damage)
#else
if ( is_user_connected(attacker) )
{
new damage = read_data(2)
#endif
set_hudmessage(0, 100, 200, -1.0, 0.55, 2, 0.1, 4.0, 0.02, 0.02, -1)
ShowSyncHudMsg(attacker, g_MsgSync, "%i^n", damage)
}
return PLUGIN_CONTINUE
}
Ogólnie są tam 3 klamry otwierające i 2 zamykające, tylko że klamry otwierające 2. i 3. są pomiędzy #if, #else, #endif