Info Message for Victim
Hello,
I need some help scripting this part of plugin. PHP Code:
|
Re: Info Message for Victim
weapon and health are Integers, not Strings. Use %d or %i instead of %s
|
Re: Info Message for Victim
Ok, i did, but look what's the message now:
Player x killed you with weapon 22 and he has "x" hp Player x killed you with weapon 19 and he has "x" hp Why not showing me weapon m4a1/ak47 or something like that and it's showing me (19,22) PHP Code:
|
Re: Info Message for Victim
That is because get_user_weapon returns a weapon index, not a name. You need to translate that to the weapon name
|
Re: Info Message for Victim
How can i do that? Can you help me?
|
Re: Info Message for Victim
Hi, try this:
PHP Code:
|
Re: Info Message for Victim
Same, not showing weapon nome only some figures:
[php]Player x killed with 119 and he has y hp |
Re: Info Message for Victim
That is because he is printing a String as an Integer. Change the %d back to %s
|
Re: Info Message for Victim
Not working ... god damn .. no sanse you really know what are you doing?
First time was with %s and then %d and now you want again %s ... Somebody help |
Re: Info Message for Victim
Weapon name:
PHP Code:
|
| All times are GMT -4. The time now is 20:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.