Raised This Month: $ Target: $400
 0% 

[Help] Plugin Error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-24-2014 , 15:35   Re: [Help] Plugin Error
Reply With Quote #1

The error does not correspond to the code (line 46 has no code on it). The only thing that I see that is indexing anything is the "day" array and I find it hard to believe that you have 32 players on the server. However, you should declare "day" with 33 cells.

Attach the whole .sma file to your next post so that we can see where the error is actually occuring.

Another thing that I notice is that you put a maxlength of 255 for the fgets() function but your buffer is only 128. You should set the third parameter of fgets() as "charsmax(bufferd)".
__________________

Last edited by fysiks; 06-24-2014 at 15:35.
fysiks is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-26-2014 , 14:05   Re: [Help] Plugin Error
Reply With Quote #2

We can't really help you until you attache your .sma file (unedited) so that we can see where the error is actually coming from.

As for the fgets() comment, please re-read my statement:

Quote:
Originally Posted by fysiks View Post
You should set the third parameter of fgets() as "charsmax(bufferd)".
__________________

Last edited by fysiks; 06-26-2014 at 14:05.
fysiks is offline
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 21:17.


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