AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   What does this mean? (https://forums.alliedmods.net/showthread.php?t=96327)

titak 07-03-2009 19:50

What does this mean?
 
What does this mean?

L 07/04/2009 - 01:42:08: AMXX] Run time error 10 (plugin "zzz.amxx") (native "set_task") - debug not enabled!

Bugsy 07-03-2009 20:00

Re: What does this mean?
 
It means there was an error. In plugins.ini add debug after your plugin and it will display more info about the error.

Like this:

zzz.amxx debug

titak 07-03-2009 20:06

Re: What does this mean?
 
How can I fix this?

Bugsy 07-03-2009 20:09

Re: What does this mean?
 
Show me your set_task line(s) of code

titak 07-03-2009 20:21

Re: What does this mean?
 
I will give you all-SMA file because I do not know how to know ok?

Bugsy 07-03-2009 20:24

Re: What does this mean?
 
Quote:

Originally Posted by titak (Post 863718)
I will give you all-SMA file because I do not know how to know ok?

I don't want to look at your entire plugin. Just paste each line where you use set_task.

titak 07-03-2009 20:57

Re: What does this mean?
 
else if (blockType == BM_BHOP || blockType == BM_BHOP_NOSLOW)
{
//set bhop block to be SOLID_NOT after 0.1 seconds
set_task(0.1, "taskSolidNot", TASK_BHOPSOLIDNOT + ent);
}
else if (blockType == BM_DELAYED)
{
//Delayed
set_task(1.0, "taskSolidNot", TASK_BHOPSOLIDNOT + ent);





set_user_godmode(id, 1);
set_task(fTimeout, "taskInvincibleRemove", TASK_INVINCIBLE + id, "", 0, "a", 1);



//set a task to remove stealth after time out amount
set_task(fTimeout, "taskStealthRemove", TASK_STEALTH + id, "", 0, "a", 1);


And more of this is

Bugsy 07-03-2009 21:20

Re: What does this mean?
 
PHP Code:

set_task(fTimeout"taskInvincibleRemove"TASK_INVINCIBLE id""0"a"1);

set_task(fTimeout"taskStealthRemove"TASK_STEALTH id""0"a"1); 

If you are not passing a parameter(s), use an underscore not "". Also, you are passing the repeat flag "a" but you are only repeating one time so its not needed. Suppose you wanted to repeat 10 times, you would do this:

PHP Code:

set_taskfTimeout "taskStealthRemove" TASK_STEALTH id __"a" 10 ); 

For doing what it looks like you are trying to do, this will work:

PHP Code:

set_task(fTimeout"taskInvincibleRemove"TASK_INVINCIBLE id );

set_task(fTimeout"taskStealthRemove"TASK_STEALTH id ); 


titak 07-04-2009 10:45

Re: What does this mean?
 
do not know what's going on I will give you the sma file and do it to me ok? I will give you the server administrator


All times are GMT -4. The time now is 15:30.

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