Cstrike Invalid id Out Of Range
For some reason while in Ham_Killed i get issues with Cstrike natives (cs_get_weapon_id()) Also tried multiple other cs natives all gave the same error
I used get_user_name to display the name of the killer and it returns my name so not sure why im having issues with cstrike natives saying im not a player lol. Code:
L 07/29/2011 - 00:07:31: [CSTRIKE] Non-player entity 1 out of rangePHP Code:
|
Re: Cstrike Invalid id Out Of Range
cs_get_weapon_id accepts WEAPON entities, not players, use the other method, get_user_weapon().
Also be warned, if someone is killed by a grenade, you can get verry bad results, you should get a pev value from the victim indicating damage type, I don't remember which... pev_dmg.. something. |
Re: Cstrike Invalid id Out Of Range
Quote:
cs_set_weapon_ammo ( index, newammo ) Notes index is a player index from 1 to 32. |
Re: Cstrike Invalid id Out Of Range
Quote:
|
Re: Cstrike Invalid id Out Of Range
Quote:
Guess i should read the comments. |
Re: Cstrike Invalid id Out Of Range
Quote:
Quote:
Still, that's a different function, we were talking about cs_get_weapon_id. |
Re: Cstrike Invalid id Out Of Range
Quote:
obv you cant read ither... "I guess i should read the comments." because its edited there. |
| All times are GMT -4. The time now is 00:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.