AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   solved! Leave Gang problem (https://forums.alliedmods.net/showthread.php?t=249970)

Fuck For Fun 10-15-2014 12:54

solved! Leave Gang problem
 
fixed

fysiks 10-15-2014 13:58

Re: Leave Gang problem
 
A bunch of the functions you are using don't exist
If you are having issues when you join the server, you need to debug that part of your plugin.

Fuck For Fun 10-15-2014 14:33

Re: Leave Gang problem
 
Quote:

Originally Posted by fysiks (Post 2211441)
A bunch of the functions you are using don't exist
If you are having issues when you join the server, you need to debug that part of your plugin.

There debug, and I received no error and nothing appears.

fysiks 10-15-2014 14:47

Re: Leave Gang problem
 
Quote:

Originally Posted by Fuck For Fun (Post 2211457)
There debug, and I received no error and nothing appears.

Debugging isn't only "putting 'debug' after your plugin in plugins.ini" and looking for errors. It's looking for inconsistency, tracking down where the data is incorrect and then where that data is not being set correctly etc. You need to find out what function is giving you the group status first then find out why it gave you that group status. Once you find that out, you need to track down where that 'status' is being set incorrectly (or not being unset correctly in your case).

Debugging usually involves outputting data at various steps in the process to make sure that it is what it is supposed to be. Some people use log functions, I use server_print().

If you are still having issues after trying to track down the issue, please attach your WHOLE .sma file WITH your debugging messages included.

Fuck For Fun 10-15-2014 16:14

Re: Leave Gang problem
 
First of all, I do not know what to tell you about it.

I just want to know how I can check another ERROR, other than putting in debug in name plugin in plugins.ini

fysiks 10-15-2014 19:56

Re: Leave Gang problem
 
Quote:

Originally Posted by fysiks (Post 2211467)
Debugging usually involves outputting data at various steps in the process to make sure that it is what it is supposed to be. Some people use log functions, I use server_print().


Fuck For Fun 10-15-2014 20:36

Re: Leave Gang problem
 
How can I use server_print().

I did not understand

fysiks 10-15-2014 21:16

Re: Leave Gang problem
 
PHP Code:

// something happens
server_print("hey, something happened and this is the value:  %d"variable_of_interest)
// something else happens
server_print("hey, something else happened and this is the value: %d"variable_of_interest)
// etc. 


Fuck For Fun 10-15-2014 22:02

Re: Leave Gang problem
 
Quote:

Originally Posted by fysiks (Post 2211568)
PHP Code:

// something happens
server_print("hey, something happened and this is the value:  %d"variable_of_interest)
// something else happens
server_print("hey, something else happened and this is the value: %d"variable_of_interest)
// etc. 


First time I see something like this, how do I use it?

How do I check with the problem of LeaveGang?

fysiks 10-15-2014 22:16

Re: Leave Gang problem
 
Quote:

Originally Posted by Fuck For Fun (Post 2211578)
First time I see something like this, how do I use it?

You use the debugging printouts where you want to validate information.

Quote:

Originally Posted by Fuck For Fun (Post 2211578)
How do I check with the problem of LeaveGang?

Did you write the code?


All times are GMT -4. The time now is 17:34.

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