Raised This Month: $ Target: $400
 0% 

ZP 5.0 native error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mohsen9010
Senior Member
Join Date: Jun 2011
Location: Iran
Old 07-13-2014 , 18:31   ZP 5.0 native error
Reply With Quote #1

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)
__________________
Iman in Allah
mohsen9010 is offline
Send a message via Yahoo to mohsen9010 Send a message via Skype™ to mohsen9010
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode