To make it easier to read:
PHP Code:
//else if(blablabla)
{
EmitSoundToClient(i, SOUND_FANFARE);
PrintToChat(i, "\x01 You've qualified for the \x05bronze\x01 medal!");
g_nPlayerData[i][g_bReached][BRONZE_MEDAL] = true;
}
else if(!g_nPlayerData[i][g_bReached][SILVER_MEDAL] && GetEntProp(GetPlayerResourceEntity(), Prop_Send, "m_iScore", _, i) >= GetConVarInt(g_hSilver))
{
EmitSoundToClient(i, SOUND_FANFARE);
PrintToChat(i, "\x01 You've qualified for the \x04silver\x01 medal!");
g_nPlayerData[i][g_bReached][SILVER_MEDAL] = true;
}
else if(GetEntProp(GetPlayerResourceEntity(), Prop_Send, "m_iScore", _, i) >= GetConVarInt(g_hGold)){
}
Could you give us the whole function's code? The snippet makes it hard to see where "i" is coming from.
__________________