Raised This Month: $ Target: $400
 0% 

[SOLVED] Setting weapon ammo...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
bwgrubbs1
Senior Member
Join Date: Sep 2006
Old 04-26-2007 , 14:48   Re: Setting weapon ammo...
Reply With Quote #5

just a bit of a problem

Code:
    new players[32], num         new i         get_players(players, num)           new rnd     rnd = random_num(0,100)         if( rnd <= 100)         {             give_item(id, "weapon_awp")         new WeapEntIndex = find_ent_by_owner(-1, "weapon_awp", players[i], 0);         if(is_ent_valid(WeapEntIndex))         {             cs_set_weapon_ammo(WeapEntIndex, 3);         }             client_print(players[i], print_chat, "You got an awp with 3 bullets! (1/20 Chance)")         i++         }

/home/groups/amxmodx/tmp3/phpKRstlI.sma(599) : error 017: undefined symbol "is_ent_valid"
bwgrubbs1 is offline
 



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 06:38.


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