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

Solved Plugin make server crash without warning


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 08-29-2017 , 07:23   Plugin make server crash without warning
Reply With Quote #1

So, I was trying to call my forward and instantly after, the server crash.

PHP Code:
public void Function(char[] data)

                
char bit[2][900];    
            
ExplodeString(data"|"bitsizeof bitsizeof bit[]);
                
int code StringToInt(bit[0]);
                
Call_StartForward(ForwardHandle);
        
Call_PushCell(code);
        
Call_PushString(bit[1]);
        
Call_Finish();

INC forward code :
PHP Code:
/** 
 * A random event.
 * 
 * @return          Nothing.
 */ 
forward int AForward_Name(int codechar[] message); 
Has it ever happened to any of you ? Anybody have an solution ? What have I done wrong ?

EDIT: It's fixed.

This was my error :
PHP Code:
ForwardHandle CreateGlobalForward("AForward_Name"ET_IgnoreParam_String); 
Had to be :
PHP Code:
ForwardHandle CreateGlobalForward("AForward_Name"ET_IgnoreParam_CellParam_String); 
__________________
Want to check my plugins ?

Last edited by Arkarr; 08-29-2017 at 07:26. Reason: I'm retarded.
Arkarr is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 08-29-2017 , 09:34   Re: Plugin make server crash without warning
Reply With Quote #2

That shouldn't of caused a crash, worst case scenario would be Call_PushCell throwing a native error with message corresponding with "SP_ERROR_PARAM"
__________________
WildCard65 is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 08-29-2017 , 10:16   Re: Plugin make server crash without warning
Reply With Quote #3

Quote:
Originally Posted by WildCard65 View Post
That shouldn't of caused a crash, worst case scenario would be Call_PushCell throwing a native error with message corresponding with "SP_ERROR_PARAM"
Well, I swear it crashed. Try by yourself.
__________________
Want to check my plugins ?
Arkarr 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 06:54.


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