Hello,
Stumbled upon an error.
I have:
PHP Code:
register_event("SendAudio", "eventTCastiga", "a", "2&%!MRAD_terwin")
Then
PHP Code:
public eventTCastiga()
{
if(g_MixInceput)
{
g_ScorEchipaT++
}
}
Which basically adds +1 score to TERRORRISTS.
Then I have this text that displays at the end of the round, which basically states the score and the overall number of rounds.
PHP Code:
if(g_ScorEchipaT != 16 && g_ScorEchipaCT != 16)
ColorChat(0, GREEN, "^1Runda ^4%d^1 s-a sfarsit. Scor: ^3[TERRORISTS] ^4%d ^1- ^4%d ^3[COUNTER-TERRORISTS]", g_NumarRundeTotal, g_ScorEchipaT, g_ScorEchipaCT)
But if I plant the bomb and the bomb explodes, it adds +2 score to the TERRORISTs. Displays the score twice as well.
Example: Round 3 finished. Score: TERRORISTS 2 - 1 COUNTER TERRORISTS.
then displays again Round 4 finished. Score TERRORISTS 3 - 1 COUNTER TERRORISTS.
TL;DR bomb explosion adds +2 score instead of +1 and triggers twice.