View Single Post
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