Raised This Month: $ Target: $400
 0% 

Insufficaint Memeory ? [SOLVED]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
The Specialist
BANNED
Join Date: Nov 2006
Old 12-10-2006 , 15:59   Insufficaint Memeory ? [SOLVED]
Reply With Quote #1

Ive never seen this error before. But I'm getting an error for "insufficient memory" has any one ever had this before?

Last edited by The Specialist; 12-10-2006 at 18:15.
The Specialist is offline
Send a message via AIM to The Specialist
mateo10
Veteran Member
Join Date: Jan 2006
Old 12-10-2006 , 16:02   Re: Insufficaint Memeory ?
Reply With Quote #2

Have you checked your HD space?
mateo10 is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 12-10-2006 , 16:04   Re: Insufficaint Memeory ?
Reply With Quote #3

i don't think it is that because other plugins still compile. Only this one doesn't
The Specialist is offline
Send a message via AIM to The Specialist
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 12-10-2006 , 16:09   Re: Insufficaint Memeory ?
Reply With Quote #4

Quote:
Originally Posted by The Specialist View Post
Ive never seen this error before. But I'm getting an error for "insufficient memory" has any one ever had this before?
Use this somewhere in your script:

Code:
#pragma dynamic 32768
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Old 12-10-2006, 16:09
mateo10
This message has been deleted by mateo10.
The Specialist
BANNED
Join Date: Nov 2006
Old 12-10-2006 , 16:11   Re: Insufficaint Memeory ?
Reply With Quote #5

So i get an error on the line where i use pev to get the origin

Code:
#pragma dynamic 32768 #include <amxmodx> #include <amxmisc> #include <fakemeta> #include <sockets> new g_Switch; new g_TransportAccess; new filename[256]; /*------------------------------------------------------------------------------------------------*/ enum ORIGIN_DATA {  ADMIN_ID[32],  MAP_NAME[32],  ORIGIN[3],    END_DATA } new MSP_Data[33][ORIGIN_DATA]; /*------------------------------------------------------------------------------------------------*/ public plugin_init() {  register_plugin("Multi-Server Portal","0.1","The Specialist");  g_Switch = register_cvar("msp_switch","1");  g_TransportAccess = register_cvar("msp_jump_access","0");  get_configsdir(filename,255);  format(filename,255,"%s/msp_origins.txt",filename);  register_concmd("msp_create_jump","create_jump_point",ADMIN_LEVEL_A,"Creates An Origin For Portal Where Admin Is");  register_concmd("msp_add_server","add_server",ADMIN_LEVEL_A,"Adds A Server To The List By IP"); } /*------------------------------------------------------------------------------------------------*/ public create_jump_point(id,level,cid) {  if((cmd_access(id , level , cid , 0) &&( get_pcvar_num(g_Switch))  {   pev(id,pev_origin,MSP_Data[id][ORIGIN]);   get_mapname(MSP_Data[id][MAP_NAME],31);   get_user_authid(id,MSP_Data[id][ADMIN_ID],31);     new FP = fopen(filename,"a+");     if( FP)   {    fwrite_raw(FP,MSP_Data[id][ORIGIN_DATA: 0],sizeof(MSP_Data[]),BLOCK_INT)    return;   }  }  fclose(AP);  return 1; }
The Specialist is offline
Send a message via AIM to The Specialist
stupok
Veteran Member
Join Date: Feb 2006
Old 12-10-2006 , 16:38   Re: Insufficaint Memeory ?
Reply With Quote #6

new FP = fopen(...)
fclose(AP)
stupok is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 12-10-2006 , 16:40   Re: Insufficaint Memeory ?
Reply With Quote #7

good catch , but that still gives an error .
The Specialist is offline
Send a message via AIM to The Specialist
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 12-10-2006 , 17:00   Re: Insufficaint Memeory ?
Reply With Quote #8

Code:
enum ORIGIN_DATA {  ADMIN_ID[32],  MAP_NAME[32],  ORIGIN[3],    END_DATA } new MSP_Data[33][ORIGIN_DATA];

You can't really do that...
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 12-10-2006 , 17:02   Re: Insufficaint Memeory ?
Reply With Quote #9

why cant you do that ? I got the file writing part from a tutorial .
The Specialist is offline
Send a message via AIM to The Specialist
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 12-10-2006 , 17:06   Re: Insufficaint Memeory ?
Reply With Quote #10

Quote:
Originally Posted by The Specialist View Post
why cant you do that ? I got the file writing part from a tutorial .
Don't use enums as structs. They're totally broken.

Just use seperate variables.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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 06:56.


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