7errors
i got 7 errors in this VERRY litle plugin
Code:
http://forums.alliedmods.net/showthread.php?t=25082 |
First of all, you cant put any other stuff expect register_ commands in plugin_init >_<
Code:
|
Quote:
1. missed "/" at the top. 2. register_cvar("amxx_recoverhp_amount", "Float:fvalue = 0.5") - what? just put "0.5" 3. new Float:recover_amount = get_cvar_float("amxx_recoverhp_amount") 4. new damage = read_data(2) - you can read data arguments only inside event-handlers 5. new health = get_user_health(id) - id isn't defined 6. recover_hp - declare that public function outside plugin_init 7. health < 100 and health >= 100 8. set_user_health(id, health + damage*recover_amount) - 2nd parameter must be integer, not a float value 9. plugin_init must return a value in your case, for example return PLUGIN_CONTINUE Probably a bit more errors than you expected. ;) |
Quote:
|
no copy/paste misstakes?:
ctrl+a (select all) ctrl+c (copy) ctrl+v (paste) |
i always select with the mouse then ctrl+c and ctrl+v :)
|
Quote:
Code:
|
Code:
zenified :) |
Quote:
|
it comiles and gives no errors in debug mode, gonne test it online in the weekend :), first some school :lol:
|
| All times are GMT -4. The time now is 20:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.