You have two booleans on that function.
Code:
ActionMoney(id, ent)
{
if ( cs_get_user_team(id) == CS_TEAM_T )
{
if ( !g_cash_used[id] )
{
emit_sound(id, CHAN_STATIC, g_sound_money, 1.0, ATTN_NORM, 0, PITCH_NORM);
new property[5];
GetProperty(ent, 1, property);
cm_set_user_cash(id, cm_get_user_cash(id) + str_to_num(property));
cm_cash_used[id] = true;
set_hudmessage(0, 255, 0, 0.01, 0.18, 0, 0.0, 1.0, 0.25, 0.25, 2);
show_hudmessage(id, "You got %i more Money!", str_to_num(property));
}
}
}
Use one of them not both. Either create new bool:g_cash_used[ 33 ]; or use that cm_cash_used[ .. ];
( You get that error because you haven't created g_cash_used )
__________________