Raised This Month: $ Target: $400
 0% 

pfn_touch error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-13-2010 , 04:59   Re: pfn_touch error
Reply With Quote #1

Replace :

Code:
    if (ptr > 0 && ptd > 0) {

with

Code:
    if (ptr > 0 && ptd > 0 && is_valid_ent(ptr) && is_user_alive(ptd) ) {
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 06-13-2010 , 08:40   Re: pfn_touch error
Reply With Quote #2

Quote:
Originally Posted by ConnorMcLeod View Post
Replace :

Code:
    if (ptr > 0 && ptd > 0) {

with

Code:
    if (ptr > 0 && ptd > 0 && is_valid_ent(ptr) && is_user_alive(ptd) ) {
But Connor, is_valid_ent() and is_user_alive() do not check if the entities are > than 0? or i am wrong?
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
Reply



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 14:53.


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