What about g_money ? how can you use :
Code:
public buy_frostnade(id) {
g_money[id]+=(get_user_frags(id)-lastfrags[id])*5;
}
and
Code:
public moneyforfrags() {
g_money(id, money - get_cvar_num("fn_price"));
}
at a same time ? Isn't money a function ?
Besides declaring a variable in a loop will generate an error.
Code:
for ( new i = 0 ; i <iNum ; i ++ )
{
new id = iPlayers[i];
}
must be :
Code:
new id;
for ( new i = 0 ; i <iNum ; i ++ )
{
id = iPlayers[i];
}