AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   help (https://forums.alliedmods.net/showthread.php?t=100064)

drakeris 08-12-2009 06:02

help
 
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")


ot_207 08-12-2009 08:51

Re: help
 
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!

drakeris 08-12-2009 09:25

Re: help
 
no more...

xPaw 08-12-2009 10:57

Re: help
 
Quote:

its sma all code ;)
Gratz. we didnt knew that.

drakeris 08-12-2009 11:20

Re: help
 
Quote:

Originally Posted by xPaw (Post 897322)
Gratz. we didnt knew that.

it would be more greater if you help`ed me not offtopiced :(

Arkshine 08-12-2009 11:29

Re: help
 
Please indent your code.

drakeris 08-12-2009 12:15

Re: help
 
Quote:

Originally Posted by Arkshine (Post 897344)
Please indent your code.

what do you mean by saying "please ident your code"?

Arkshine 08-12-2009 12:25

Re: help
 
http://en.wikipedia.org/wiki/Indent_style Your code is a pain to read, so do an effort to indent your code at least.

drakeris 08-13-2009 01:11

Re: help
 
no more

Bad_Bud 08-13-2009 01:31

Re: help
 
...is that supposed to be the indented version?


All times are GMT -4. The time now is 18:27.

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