Raised This Month: $ Target: $400
 0% 

API Scripting Help Compile error :(


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
med
Member
Join Date: Mar 2013
Old 07-17-2013 , 06:49   Compile error :(
Reply With Quote #1

when i add this native it how
Compile error !!!

zp_set_user_ammo_packs(id, zp_get_user_ammo_packs(id) + 100)

i am using zpa
Attached Thumbnails
Click image for larger version

Name:	Sans a.jpg
Views:	180
Size:	93.7 KB
ID:	122785  
__________________
med is offline
Send a message via Skype™ to med
ScrappeR
Senior Member
Join Date: Dec 2010
Old 07-17-2013 , 19:51   Re: Compile error :(
Reply With Quote #2

Quote:
Originally Posted by med View Post
when i add this native it how
Compile error !!!

zp_set_user_ammo_packs(id, zp_get_user_ammo_packs(id) + 100)

i am using zpa

PHP Code:
new zp_get_user_ammo_packs(id)

plugin_init()
 ........ 
__________________
ScrappeR is offline
bat
Veteran Member
Join Date: Jul 2012
Old 07-18-2013 , 01:46   Re: Compile error :(
Reply With Quote #3

In main plugin is register new native

Code:
// Native: zp_get_user_ammo_packs
public native_get_user_ammo_packs(id)
{
	return g_ammopacks[id];
}

// Native: zp_set_user_ammo_packs
public native_set_user_ammo_packs(id, amount)
{
	g_ammopacks[id] = amount;
}
bat is offline
Send a message via Skype™ to bat
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 07-18-2013 , 04:00   Re: Compile error :(
Reply With Quote #4

or simply, #include <zombie_plague_advanced>"
__________________
You will find everything u need :-
Catastrophe is offline
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 00:18.


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