Raised This Month: $13 Target: $400
 3% 

Solved fatal error 186: insufficient memory


Post New Thread Reply   
 
Thread Tools Display Modes
Tilex
Junior Member
Join Date: May 2020
Old 05-24-2020 , 07:04   Re: fatal error 186: insufficient memory
Reply With Quote #11

https://wiki.alliedmods.net/Creating...Mod_Scripting)
So, from what I get here, you are working with two scripts. One is creating a Native to be used from the other. The one defining the Native has the line:
CreateNative("JC_GetCaptain", Native_Obtener);

You also need to create an include file with contents like:
PHP Code:
/** Double-include prevention */
#if defined _mynatives_included_
  #endinput
#endif
#define _mynatives_included_
 
native int JC_GetCaptain(); 
Now include it with:
#include "filenameOfIncludeInSameDirectory.inc"
Then you should be able to run: if(JC_GetCaptain() == client)
Tilex is offline
BloodBullet
Junior Member
Join Date: May 2020
Old 05-24-2020 , 10:28   Re: fatal error 186: insufficient memory
Reply With Quote #12

Quote:
Originally Posted by Tilex View Post
https://wiki.alliedmods.net/Creating...Mod_Scripting)
So, from what I get here, you are working with two scripts. One is creating a Native to be used from the other. The one defining the Native has the line:
CreateNative("JC_GetCaptain", Native_Obtener);

You also need to create an include file with contents like:
PHP Code:
/** Double-include prevention */
#if defined _mynatives_included_
  #endinput
#endif
#define _mynatives_included_
 
native int JC_GetCaptain(); 
Now include it with:
#include "filenameOfIncludeInSameDirectory.inc"
Then you should be able to run: if(JC_GetCaptain() == client)
Thanks A LOT !!! it works . i really didn't think about that
BloodBullet is offline
Reply


Thread Tools
Display Modes

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 17:09.


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