Quote:
Originally Posted by connorr
Examples are allready provided on the link a gave you.
|
PHP Code:
new Weapons[32]
new numWeapons, i, weapon
get_user_weapons(id, Weapons, numWeapons)
for (i=0; i<numWeapons; i++)
{
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 numWeapons, i, weapon;
get_user_weapons(id, Weapons, numWeapons);
for (i=0; i<numWeapons; i++) {
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
|
__________________