:
public bool:wplackase(id,ile)
{
if (cs_get_user_money(id) >= ile)
{
cs_set_user_money(id,cs_get_user_money(id)-ile)
new cvar = get_pcvar_num(cvar_procent)
new float:podatek
podatek = float(cvar)
new x = podatek/=100
new ile2 = ile *= x
new ile3 = ile -= x
stan_konta_gracza[id] += ile2
stan_konta_serwera += ile3
ColorChat(id,GREEN,"[*Bank*]^x01 Wplaciles na konto %i$ - podatek ( %i )", ile, cvar);
return true
}
else
{
ColorChat(id,GREEN,"[*Bank*]^x01 Nie masz tyle $")
return false
}
return false
}
Może mi ktoś to uprościć o ile się da ?
P.S.
Przy kompilacji są waringi
TagMismatch
Z góry dziękuje