Raised This Month: $ Target: $400
 0% 

please help on my custom clip and bpammo on my custom plugin!!!!!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 05-04-2010 , 10:21   please help on my custom clip and bpammo on my custom plugin!!!!!
Reply With Quote #1

well, i dont know how to put clip and bpammo before, so im asking for help!

here is .SMA file!
Attached Files
File Type: sma Get Plugin or Get Source (zp_cso_cv47.sma - 582 views - 5.9 KB)
__________________

Last edited by jc980; 05-04-2010 at 22:45.
jc980 is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-04-2010 , 15:37   Re: please help on my custom clip and bpammo on my custom plugin!!!!!
Reply With Quote #2

cs_set_weapon_ammo( weaponindex, amount )
cs_set_user_bpammo( playerindex, CSW_const, amount )
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 05-04-2010 , 22:24   Re: please help on my custom clip and bpammo on my custom plugin!!!!!
Reply With Quote #3

Quote:
Originally Posted by wrecked_ View Post
cs_set_weapon_ammo( weaponindex, amount )
cs_set_user_bpammo( playerindex, CSW_const, amount )
ah, can u please show an example of that to where to put it?????
__________________
jc980 is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-04-2010 , 22:28   Re: please help on my custom clip and bpammo on my custom plugin!!!!!
Reply With Quote #4

Code:
        give_item(player, "weapon_ak47")         client_print(player, print_chat, "[ZP] You bought CSO REX CV-47 60R")         g_HasAk[player] = true;

Code:
        new iWep = give_item(player, "weapon_ak47")         if( iWep > 0 )         {             cs_set_weapon_ammo( iWep, 30 )             cs_set_user_bpammo( id, CSW_AK47, 90 )         }         client_print(player, print_chat, "[ZP] You bought CSO REX CV-47 60R")         g_HasAk[player] = true;
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 05-04-2010 , 22:36   Re: please help on my custom clip and bpammo on my custom plugin!!!!!
Reply With Quote #5

Quote:
Originally Posted by wrecked_ View Post
Code:
        give_item(player, "weapon_ak47")         client_print(player, print_chat, "[ZP] You bought CSO REX CV-47 60R")         g_HasAk[player] = true;

Code:
        new iWep = give_item(player, "weapon_ak47")         if( iWep > 0 )         {             cs_set_weapon_ammo( iWep, 30 )             cs_set_user_bpammo( id, CSW_AK47, 90 )         }         client_print(player, print_chat, "[ZP] You bought CSO REX CV-47 60R")         g_HasAk[player] = true;
thanks!

it gave me 6 compile errors it says that player, id has its undefined line 20-23 has no constant expression line 198 has no effect, expected token ; but found ), invalid expression assumed zero fatal error too many errors on one line.
__________________

Last edited by jc980; 05-04-2010 at 22:48.
jc980 is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-04-2010 , 23:01   Re: please help on my custom clip and bpammo on my custom plugin!!!!!
Reply With Quote #6

Replace id with player.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 05-04-2010 , 23:08   Re: please help on my custom clip and bpammo on my custom plugin!!!!!
Reply With Quote #7

Quote:
Originally Posted by wrecked_ View Post
Replace id with player.
what id it has many words that has ID
__________________
jc980 is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-04-2010 , 23:18   Re: please help on my custom clip and bpammo on my custom plugin!!!!!
Reply With Quote #8

Code:
cs_set_user_bpammo( id, CSW_AK47, 90 )
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 05-04-2010 , 23:23   Re: please help on my custom clip and bpammo on my custom plugin!!!!!
Reply With Quote #9

Quote:
Originally Posted by wrecked_ View Post
Code:
cs_set_user_bpammo( id, CSW_AK47, 90 )
ok, that part was fixed, now two errors remain, line 20 undefined symbol "player"
line 20-23 must be a constant expression; assumed zero
__________________
jc980 is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-04-2010 , 23:28   Re: please help on my custom clip and bpammo on my custom plugin!!!!!
Reply With Quote #10

Post line 20.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ 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 03:47.


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