AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Why Doesn't Work? (https://forums.alliedmods.net/showthread.php?t=195609)

Erdener 09-09-2012 10:57

Why Doesn't Work?
 
[....]

fysiks 09-09-2012 13:53

Re: Why Doesn't Work?
 
Be specific, what doesn't work?

Erdener 09-10-2012 08:14

Re: Why Doesn't Work?
 
Quote:

Originally Posted by fysiks (Post 1795352)
Be specific, what doesn't work?

I choose a class , properties of the class is working but subsequent, client_cmd(id,"SaglikVerme") and client_cmd(id,"SarjorVer")

fysiks 09-10-2012 19:48

Re: Why Doesn't Work?
 
Because those commands are not hooked by that plugin. I'm guessing you misinterpreted what register_forward() does. Use register_clcmd().

fysiks 09-12-2012 19:41

Re: Why Doesn't Work?
 
Quote:

Originally Posted by Erdener (Post 1797345)
I make but, not compile

And? Read the errors and fix them. Hint: Variable and function names must be unique.

Also, people who don't know anything about fixing their own problems should change one thing at a time and then compile and test. If it works great, make another change. If it doesn't work, fix the problem; should be easy since you've only made a small change.

Liverwiz 09-12-2012 19:45

Re: Why Doesn't Work?
 
Quote:

Originally Posted by fysiks (Post 1797909)
And? Read the errors and fix them. Hint: Variable and function names must be unique.

Also, people who don't know anything about fixing their own problems should change one thing at a time and then compile and test. If it works great, make another change. If it doesn't work, fix the problem; should be easy since you've only made a small change.

This is excellent advice. Even for experienced coders. Because often times (especially in larger programs) once you fix one problem, it causes another to break, because you based your entire logic on flawed code. You won't know this till you fix one at a time.

The issue with it is that its time consuming. But worth it, usually.


All times are GMT -4. The time now is 08:16.

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