Raised This Month: $ Target: $400
 0% 

strange runtime errors with crash


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Belsebub
Senior Member
Join Date: Feb 2005
Location: Sweden
Old 05-08-2005 , 08:45   strange runtime errors with crash
Reply With Quote #1

i get some strange runtime errors with a crash on a plugin im working with
it crashes when i die if XtraSpawn is true and Respawnible is true

the error i get in the logs:

Code:
[AMXX]Run time error 3 (stack error) on line 249 (file "skills.sma"). [AMXX]Run time error 3 (stack error) on line 254 (file "skills.sma"). SZ_GetSpace: overflow on netchan->message

after the error it crashes with this message:

Code:
Fatal error - Dedicated server

SZ_GetSpace: overflow without FSB_ALLOWOVERFLOW set on Server Reliable Datagram
and here is the piece of code it crashes on:

Code:
public Event_DeathMsg() {     new victim = read_data(2)//Line 249     if (XtraSpawn[victim] == true && Respawnible[victim] == true) {         spawn(victim)         set_task(0.5,"spawnagain",victim)//Line 254         Respawnible[victim] = false     }     return PLUGIN_CONTINUE } public spawnagain(id) {     spawn(id)     return PLUGIN_CONTINUE }

if you need i can send the whole code
Belsebub is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-08-2005 , 08:59  
Reply With Quote #2

Try this:
Code:
public Event_DeathMsg() {     new victim = read_data(2)     new parm[2]     parm[0] = victim     if (XtraSpawn[victim]) {         if(Respawnible[victim]) {                 set_task(0.5,"spawnagain",_,parm,1)                 set_task(0.7,"spawnagain",_,parm,1)                 Respawnible[victim] = false         }     }     return PLUGIN_CONTINUE } public spawnagain(parm[1]) {     spawn(parm[0]) }

[EDIT]
Hopefully outside of your function, it looks something like this:
Code:
new bool:Respawnible[33]
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Belsebub
Senior Member
Join Date: Feb 2005
Location: Sweden
Old 05-08-2005 , 09:44  
Reply With Quote #3

thanks v3x, and yea it looks like that
Belsebub is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-08-2005 , 09:55  
Reply With Quote #4

No more crashy error crap?
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Belsebub
Senior Member
Join Date: Feb 2005
Location: Sweden
Old 05-08-2005 , 10:02  
Reply With Quote #5

nope
Belsebub 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 16:47.


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