View Single Post
DJ Data
SourceMod Donor
Join Date: Dec 2012
Location: Switzerland
Old 09-04-2015 , 08:23   Re: Plugin PrintToChat
Reply With Quote #2

To make it easier to read:
PHP Code:
//else if(blablabla)
{
    
EmitSoundToClient(iSOUND_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(iSOUND_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.
__________________
SourcePawn Coding Level: Novice

Last edited by DJ Data; 09-04-2015 at 08:24.
DJ Data is offline