Raised This Month: $ Target: $400
 0% 

Fatal Error


Post New Thread Reply   
 
Thread Tools Display Modes
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 12-25-2006 , 11:15   Re: Fatal Error
Reply With Quote #11

test it

Code:
new iEntNum = engfunc(EngFunc_NumberOfEntities) // think this will work
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 12-25-2006 , 11:49   Re: Fatal Error
Reply With Quote #12

Nope thats not the problem . I used a client_print to print out the entiy number and it was only 301 when it crashed. So thats not it .
The Specialist is offline
Send a message via AIM to The Specialist
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 12-25-2006 , 11:59   Re: Fatal Error
Reply With Quote #13

and what are the max entities?

Code:
new iMaxEnt = global_get(glb_maxEntities)
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
Old 12-25-2006, 12:09
The Specialist
This message has been deleted by The Specialist.
The Specialist
BANNED
Join Date: Nov 2006
Old 12-27-2006 , 02:14   Re: Fatal Error
Reply With Quote #14

Does any one have any idea why Im getting the fatal no free editcs message

1. Entity Number At Crash = 301

2. Max Ents = 1,020
The Specialist is offline
Send a message via AIM to The Specialist
Orangutanz
Veteran Member
Join Date: Apr 2006
Old 12-27-2006 , 04:49   Re: Fatal Error
Reply With Quote #15

You do know you can do ranges with cases?
Code:
switch (a) {     case 1 .. 5: return true     default: return false }
Much cleaner IMHO as well
__________________
|<-- Retired from everything Small/Pawn related -->|
You know when you've been Rango'd
Orangutanz is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 12-27-2006 , 05:00   Re: Fatal Error
Reply With Quote #16

Ah , yes , very true . Good spot . Do you have any idea why im getting the no fee edicts error ? I changed the engfunc(EngFunc_CreateEntity,"info_target") to engfunc(EngFunc_CreateNamedEntity,"info_targe t"). but still no differance.

++karma
The Specialist is offline
Send a message via AIM to The Specialist
Orangutanz
Veteran Member
Join Date: Apr 2006
Old 12-27-2006 , 05:05   Re: Fatal Error
Reply With Quote #17

Quote:
Originally Posted by The Specialist
Ah , yes , very true . Good spot . Do you have any idea why im getting the no fee edicts error ? I changed the EngFunc_CreateNamedEntity,"info_target") to engfunc(EngFunc_CreateNamedEntity,"info_targe t"). but still no differance.
Perhaps your not charging them (Look for the bold text quoted)

Anyway back on track, CreateNamedEntity requires EngFunc_AllocString, remember in the other thread we discussed about this, I think FakeMeta should automactically do this since it does with PrecacheSound/Model.

Code:
engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"))
__________________
|<-- Retired from everything Small/Pawn related -->|
You know when you've been Rango'd
Orangutanz is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 12-27-2006 , 05:38   Re: Fatal Error
Reply With Quote #18

But if you look at fakemeta_util by VEN , in his fm_create_entity()
he used the engfunc(EngFunc_CreateNamedEntity,"")
without using the alloc string

P.s. LOL.
The Specialist is offline
Send a message via AIM to The Specialist
Orangutanz
Veteran Member
Join Date: Apr 2006
Old 12-27-2006 , 05:40   Re: Fatal Error
Reply With Quote #19

Well then VEN's include is bugged

Taken from Utility Natives:
Code:
public Native_create_entity() {     new name[32]     get_string(1, name, 31)     new ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, name))     if (ent)         return ent     return 0 }


EDIT - Just reviewed VEN's include
Code:
#define fm_create_entity(%1) engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, %1))
Looks like it is correct.
__________________
|<-- Retired from everything Small/Pawn related -->|
You know when you've been Rango'd

Last edited by Orangutanz; 12-27-2006 at 05:43.
Orangutanz is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 12-27-2006 , 05:46   Re: Fatal Error
Reply With Quote #20

Slap me please I just saw the alloc string thing *STUP STUPID STUPID MUTTERS UNDER BREATH*

EDIT : unfortuantly there was no change still "no free edicts"

Last edited by The Specialist; 12-27-2006 at 06:11.
The Specialist is offline
Send a message via AIM to The Specialist
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 22:48.


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