Hi xD
I have a
bank plugin for my server
I convert the natives based on
ZP5.0.8
Now occur some errors in my console server
What is the problem ?
Code:
public zp_fw_core_cure(victim, id)
{
if(!get_pcvar_num(bank_state))
return PLUGIN_CONTINUE
new curmoney = zp_ammopacks_get(id)
if(curmoney < MAX_MONEY)
return PLUGIN_CONTINUE
if(canuse[id] == false)
return PLUGIN_CONTINUE
new cvarrounds = get_pcvar_num(bank_offrounds)
if(rounds <= cvarrounds)
return PLUGIN_CONTINUE
if(get_playersnum() >= get_pcvar_num(bank_min_players))
{
new balance = get_balance(id)
if(balance == -1)
return PLUGIN_CONTINUE
balance += AUTO_DEP
set_balance(id,balance)
zp_ammopacks_set(id,curmoney-AUTO_DEP)
client_print(id,print_chat,"%d ammo packs have been automatically deposited in your bank account. You now have %d ammo packs in your account.",AUTO_DEP,balance)
}
return PLUGIN_CONTINUE
}
Code:
L 07/14/2014 - 02:44:52: [ZP] Invalid Player (0)
L 07/14/2014 - 02:44:52: [AMXX] Displaying debug trace (plugin "zp50_sxg_bank.amxx", version "3.0")
L 07/14/2014 - 02:44:52: [AMXX] Run time error 10: native error (native "zp_ammopacks_get")
L 07/14/2014 - 02:44:52: [AMXX] [0] zp50_sxg_bank.sma::zp_fw_core_cure (line 529)
__________________