Displaying call stack trace for plugin
I have write a new plugins..and I got this error logs
PHP Code:
PHP Code:
PHP Code:
|
Re: Displaying call stack trace for plugin
Attacker can be anything, not necessarily player, much less jockey. Add checks.
|
Re: Displaying call stack trace for plugin
Add checks like this?
PHP Code:
|
Re: Displaying call stack trace for plugin
Much more like this
Code:
if(client > 0 && client <= MaxClients && IsClientInGame(client ))Yours sincerely Impact |
Re: Displaying call stack trace for plugin
if this is valid net_prop you should move it inside the filter suggested by Impact123
PHP Code:
|
Re: Displaying call stack trace for plugin
Thanks all....
like this ? PHP Code:
PHP Code:
Is the core like this? PHP Code:
|
Re: Displaying call stack trace for plugin
When use "player_hurt" event, "attacker" can return with invalid userid == 0,
happens when player hurt by fire, fall damage or get hurt something else than other player(s). When try get client index by given userid, GetClientOfUserId(userid) will return 0 if not found. 0 is invalid client index. Valid client index is between 1 and your server maxplayers. It is important to look first client index before continue check rest player things. PHP Code:
|
Re: Displaying call stack trace for plugin
Thanks all....
I had knew a lot about player_hur !!! |
Re: Displaying call stack trace for plugin
Quote:
|
| All times are GMT -4. The time now is 11:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.