Raised This Month: $51 Target: $400
 12% 

find bad entity


Post New Thread Reply   
 
Thread Tools Display Modes
Owyn
Veteran Member
Join Date: Nov 2007
Old 09-10-2009 , 11:19   Re: find bad entity
Reply With Quote #21

SnoW, so?

Quote:
Originally Posted by Arkshine View Post
Just add check to make sure the id passed is a valid player.
what check? the same one which is already there?
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-10-2009 , 11:26   Re: find bad entity
Reply With Quote #22

If you have this error it's probably because one these messages don't have the proper check. A check to make sure that the index passed is a player.
__________________
Arkshine is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 09-10-2009 , 11:30   Re: find bad entity
Reply With Quote #23

you say probably, so what's the other possibility?
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-10-2009 , 11:41   Re: find bad entity
Reply With Quote #24

I say probably because I'm not sure at 100% ; but the error is enough explicit and to generate that, only a plugin could do that. You can search you will numerous thread about that, again you have to make sure the index passed is the player. So check all your plugins and see.
__________________
Arkshine is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 09-10-2009 , 11:45   Re: find bad entity
Reply With Quote #25

ok, so check

id >= 1; id <= max_clients + is_user_connected(id)

is enough?
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-10-2009 , 11:52   Re: find bad entity
Reply With Quote #26

1 <= id <= max_clients would be enough.
__________________
Arkshine is offline
Bad_Bud
Senior Member
Join Date: Oct 2006
Location: The internet
Old 09-10-2009 , 19:02   Re: find bad entity
Reply With Quote #27

Turn on debug mode by putting debug after the plugin.amxx in plugins.cfg.

__________________
Bad_Bud is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 09-15-2009 , 10:45   Re: find bad entity
Reply With Quote #28

hey, Arshine, am i doing it wrong?

PHP Code:
if ( id 33 
cuz with this condition it got applied to the floor-block entity O_o *i made so everything under this condition becomes invisible and floor became invisible O_o
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-15-2009 , 10:47   Re: find bad entity
Reply With Quote #29

Quote:
Originally Posted by Arkshine View Post
1 <= id <= max_clients would be enough.
__________________
Arkshine is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 09-15-2009 , 10:53   Re: find bad entity
Reply With Quote #30

so if max_clients isn't exactly 32 my code will have errors, that's the reason?
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
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 19:51.


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