Raised This Month: $ Target: $400
 0% 

Getting weapon of what user is holding


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Drak
Veteran Member
Join Date: Jul 2005
Old 05-01-2007 , 22:16   Re: Getting weapon of what user is holding
Reply With Quote #6

It doesn't matter. Your "for" statement is wrong a tid bit. But when it's working correctly, it should display in the menu:
"i number. Weapons name"

Obviously, like you have. Well that will automatically read, and the case statement will work fine, it always has for me.
Just make the case(s) 0-9. But if you really need to get the total amount of weapons found, make a global variable to store it.

Oh and also, change your "for" statement to this:
Code:
new weapons[32],numWeapons get_user_weapons(id,weapons,numWeapons) for(new i=1; i < numWeapons ;i++)
__________________
Oh yeah

Last edited by Drak; 05-01-2007 at 22:20.
Drak is offline
Send a message via MSN to Drak
 



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:39.


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