Raised This Month: $ Target: $400
 0% 

Run Time error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
edgaras85
Senior Member
Join Date: Mar 2010
Location: Lithuania
Old 06-18-2010 , 06:28   Run Time error
Reply With Quote #1

L 06/18/2010 - 13:17:28: [AMXX] Run time error 3: stack error
PHP Code:
if(Team == CS_TEAM_CT) {
switch(
random_num(13))
{
case 
1cs_set_user_model(id"model1");
case 
2cs_set_user_model(id"model2");
case 
3cs_set_user_model(id"model3");
}
}
else if(
Team == CS_TEAM_T){
cs_reset_user_model(id)

edgaras85 is offline
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 06-18-2010 , 15:21   Re: Run Time error
Reply With Quote #2

Put debug after the plugin name in the plugins.ini and post the results.
RedRobster is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-18-2010 , 15:27   Re: Run Time error
Reply With Quote #3

i think it already debugged, but not the full error
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 06-18-2010 , 15:45   Re: Run Time error
Reply With Quote #4

/off-topic Drekes did you use to play in SC servers? o.o I remember someone named Angel_Killer. haha

/topic Haha, I don't really know, but either way, we need to see the full results.
RedRobster is offline
edgaras85
Senior Member
Join Date: Mar 2010
Location: Lithuania
Old 06-18-2010 , 16:11   Re: Run Time error
Reply With Quote #5

Now better?
Quote:
L 06/18/2010 - 13:17:28: [AMXX] Displaying debug trace (plugin "vip-deathrun.amxx")
L 06/18/2010 - 13:17:28: [AMXX] Run time error 3: stack error
L 06/18/2010 - 13:17:28: [AMXX] [0] vip-deathrun.sma::resetModel (line 85)
edgaras85 is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-18-2010 , 19:19   Re: Run Time error
Reply With Quote #6

Quote:
Originally Posted by RedRobster View Post
/off-topic Drekes did you use to play in SC servers? o.o I remember someone named Angel_Killer. haha

/topic Haha, I don't really know, but either way, we need to see the full results.
yep, that was me. We had quite some fun on Jailbreak in the days huh, and on Rushmod.
Yeah, Good times...
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 06-18-2010 , 17:04   Re: Run Time error
Reply With Quote #7

You didn't show us the right part of the code, I don't think.
RedRobster is offline
edgaras85
Senior Member
Join Date: Mar 2010
Location: Lithuania
Old 06-18-2010 , 17:52   Re: Run Time error
Reply With Quote #8

Quote:
Originally Posted by RedRobster View Post
You didn't show us the right part of the code, I don't think.
PHP Code:
public resetModel(idlevelcid) {
 new 
CsTeams:Team cs_get_user_team(id)   85Line
 
 
if(Team == CS_TEAM_CT) {
  switch(
random_num(13))
  {
    case 
1cs_set_user_model(id"model1");
    case 
2cs_set_user_model(id"model2");
   case 
3cs_set_user_model(id"model3");
  }
 }
 else if(
Team == CS_TEAM_T){
 
cs_reset_user_model(id)
 }
 return 
PLUGIN_CONTINUE


Last edited by edgaras85; 06-18-2010 at 18:31.
edgaras85 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-18-2010 , 17:56   Re: Run Time error
Reply With Quote #9

And which line is Line 85?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 06-18-2010 , 18:07   Re: Run Time error
Reply With Quote #10

Well...beyond that, isn't cs_set_user_model() buggy?
RedRobster 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 14:48.


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