Quote:
Originally Posted by iceeedr
If there is any way to "count" how many times the event is called already help, since I can set the global == called times.
sorry for bump.
|
Tried this...but :/
PHP Code:
public EventTeamScore()
{
if(TPlacar + CPlacar == 4)
{
formatex(szKey, charsmax(szKey), "data_score")
formatex(ScoreT, charsmax(ScoreT), "%d", TPlacar)
formatex(ScoreC, charsmax(ScoreC), "%d", CPlacar)
nfv_set_data(ScoreTeams, szKey, TPlacar, CPlacar)
}
}
public TrWins()
{
TPlacar++
if(TPlacar == 1 && CPlacar == 0)
{
new g_load_c1[25], g_load_c2[25]
formatex(szKey, charsmax(szKey), "data_score")
if(!nfv_get_data(ScoreTeams, szKey, CPlacar, TPlacar)) return;
parse(g_load_c1, charsmax(g_load_c1), g_load_c2, charsmax(g_load_c2))
CPlacar = str_to_num(g_load_c1)
TPlacar = str_to_num(g_load_c2)
//blablabla
}
}