Raised This Month: $ Target: $400
 0% 

weapon list....


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
HkFree
Junior Member
Join Date: Jun 2008
Location: Hong Kong of China
Old 07-30-2008 , 13:13   Re: weapon list....
Reply With Quote #5

Quote:
Originally Posted by connorr View Post
Examples are allready provided on the link a gave you.
PHP Code:
new Weapons[32]
new 
numWeaponsiweapon
get_user_weapons
(idWeaponsnumWeapons)
for (
i=0i<numWeaponsi++)
{
   
weapon Weapons[i]

I expect "weapon" is a string which contain something like "weapon_*" but I got a blank string when I use client_print() to print it
code are following:
PHP Code:
new Weapons[32];
new 
numWeaponsiweapon;
get_user_weapons(idWeaponsnumWeapons);
for (
i=0i<numWeaponsi++) {
   
weapon Weapons[i];
   
client_print(id,print_chat,"[Debug] get_user_weapons:%s",weapon);

I see the following message in chat area (I have a USP pistol and a Knife):
Quote:
[Debug] get_user_weapons:
[Debug] get_user_weapons:
I expect is like this
Quote:
[Debug] get_user_weapons: weapon_knife
[Debug] get_user_weapons: weapon_usp
__________________
=]

Last edited by HkFree; 07-30-2008 at 13:16.
HkFree 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 05:40.


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