quick help
the following code is about freezing the first zombie, but its for zp 5.0 so can anyone edit this and make it work for zp 4.3
Code:
#include <amxmodx> |
Re: quick help
#include <zp50_core> => #include <zombieplague>
zp_fw_core_infect_post => zp_user_infected_post zp_core_is_first_zombie => zp_get_user_first_zombie |
Re: quick help
Quote:
must have value (non-constant) warning 213 mismatch |
Re: quick help
the error wasn't even on changes OcixCrom gave you!
There you go! PHP Code:
|
Re: quick help
Actually, they will. The plugin is not written correctly.
Code:
"cvar_time" is a cvar pointer, not a value that can be used within "set_task". This should be "get_pcvar_float(cvar_time)" |
Re: quick help
Get_pcvar_float() also reads integers as floats ?
Im worried that he will let an integer value while the plugin will read it as an float? should not you use float() just to br sure ? I think the best is to let it that way and simply ads float() inside of set task . Edit: sorry, to use Code:
|
Re: quick help
get_pcvar_float returns a double no matter the value you set the cvar to.
|
Re: quick help
Quote:
|
Re: quick help
Crazy: https://forums.alliedmods.net/showpo...64&postcount=8
But to be sure you can make a test and print the value , set cvar as an Integer and then print the cvar pointer to check if is returning an double . |
Re: quick help
Floating an integer will truncate the decimal part while get_pcvar_float will not, what didn't you understand?
With double I meant float it doesn't matter |
All times are GMT -4. The time now is 17:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.