[HELP] Creating a task
Hello Alliedmodders,
I'm in a little need of scripting help creating a task ... So .. what I'm trying to do is a task that gets the victim, attacker and the damage taken. Here is an example: set_task(0.2, "create_task", id+TASK_DAMAGE, attacker, damage, _, _, "b") But I get an error every time I try to compile. If someone knows how to fix it .... please share Thanks in advance |
Re: [HELP] Creating a task
It would help, if you post the exact error message and compile log.
|
Re: [HELP] Creating a task
Quote:
PHP Code:
So do this : PHP Code:
damage = floatround(damage) And then if you need damage as float, you just convert it back to float : new Float:dmg = float(param[1]) |
Re: [HELP] Creating a task
Yea ... that helps very much ... thnx siriusmd99
|
Re: [HELP] Creating a task
Quote:
PHP Code:
|
| All times are GMT -4. The time now is 09:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.