Raised This Month: $ Target: $400
 0% 

what is wrong with my code ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 09-27-2020 , 08:08   Re: what is wrong with my code ?
Reply With Quote #8

Quote:
Originally Posted by fysiks View Post
If this is the fix, you should explain what you actually did so people can understand without having to intimately inspect the code that you posted and assume that what you posted is the fix. The Scripting Help forum is for learning after all.

Checking if the attacker is alive is not the proper solution to this problem. Whether or not a player is dead or alive is not a cause of an index out-of-bounds error. Also, the attacker might not be alive but the action should likely still happen. I believe that the proper solution is to check if the attacker is an actual player i.e. 0 < attacker < maxplayers
Actually posting code > bitching about posts in the wrong forum, non-descriptive titles, et.c.

This is a forum. It's somewhat of a dialogue. If the user responds with "I don't understand, can you explain" I would. The change is so small that comparing it is so easy there's no point of explaining. The thread author also doesn't seem to have any knowledge of coding and also no interest in changing that.
__________________

Last edited by Black Rose; 09-27-2020 at 08:19.
Black Rose is offline
 



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 13:46.


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