Raised This Month: $ Target: $400
 0% 

help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
drakeris
Senior Member
Join Date: Jul 2009
Old 08-12-2009 , 06:02   help
Reply With Quote #1

hello all i got another problem,when i chose a class my server crashes only when i choose class with this commands:
Code:
cs_reset_user_model(id); 
cs_set_user_model(id, "models/player/witch/witch.mdl");
when i chose that class the server just crashes
the code is registered
Code:
// register_event("ResetHUD", "resetModel", "b")
this is included too
Code:
 
public plugin_precache() 
{ 
    precache_model("models/player/witch/witch.mdl")
drakeris is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 08-12-2009 , 08:51   Re: help
Reply With Quote #2

Post all of your code, and some tips from what you have already posted.

1.
Change:
PHP Code:
cs_set_user_model(id"models/player/witch/witch.mdl"); 
to
PHP Code:
cs_set_user_model(id"witch"); 
2. Don't use the ResetHUD event, try using Ham_Spawn forward, better!
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
drakeris
Senior Member
Join Date: Jul 2009
Old 08-12-2009 , 09:25   Re: help
Reply With Quote #3

no more...

Last edited by drakeris; 08-14-2009 at 02:25.
drakeris is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-12-2009 , 10:57   Re: help
Reply With Quote #4

Quote:
its sma all code ;)
Gratz. we didnt knew that.
__________________
xPaw is offline
drakeris
Senior Member
Join Date: Jul 2009
Old 08-12-2009 , 11:20   Re: help
Reply With Quote #5

Quote:
Originally Posted by xPaw View Post
Gratz. we didnt knew that.
it would be more greater if you help`ed me not offtopiced
drakeris is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-12-2009 , 11:29   Re: help
Reply With Quote #6

Please indent your code.
__________________
Arkshine is offline
drakeris
Senior Member
Join Date: Jul 2009
Old 08-12-2009 , 12:15   Re: help
Reply With Quote #7

Quote:
Originally Posted by Arkshine View Post
Please indent your code.
what do you mean by saying "please ident your code"?
drakeris is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-12-2009 , 12:25   Re: help
Reply With Quote #8

http://en.wikipedia.org/wiki/Indent_style Your code is a pain to read, so do an effort to indent your code at least.
__________________
Arkshine is offline
drakeris
Senior Member
Join Date: Jul 2009
Old 08-13-2009 , 01:11   Re: help
Reply With Quote #9

no more

Last edited by drakeris; 08-14-2009 at 02:26.
drakeris is offline
Bad_Bud
Senior Member
Join Date: Oct 2006
Location: The internet
Old 08-13-2009 , 01:31   Re: help
Reply With Quote #10

...is that supposed to be the indented version?
__________________
Bad_Bud 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 18:27.


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