Raised This Month: $ Target: $400
 0% 

No errors or warnings, yet it doesnt work


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RogerGjyieah
Junior Member
Join Date: Jun 2010
Location: Denmark
Old 06-16-2010 , 06:27   Re: No errors or warnings, yet it doesnt work
Reply With Quote #1

I've re-written it all, and now i get no errors from the compiler, nor amx-logs. But it still doesn't work!

I think the problem lies in this:
PHP Code:
public HE_was_thrown() {
    if (
NadeSpawnOn == 1) {
        if (
GetNadeType() == 1) {
            
set_task(get_pcvar_float(cvar_time), "SpawnHE")
        }
    }
    return 
PLUGIN_HANDLED

or perhaps in:

PHP Code:
public SpawnHE(id) {
    if (
is_user_alive(id)) {
        
give_item(id"weapon_hegrenade")
    }

cvar_time is set to be 3.0, so it should be a float..
Once again I have linked the entire plugin here..

Another thing wich annoys me is, that my plugin apearantly needs to be set in "debug mode", as I am using RegisterHam().. Is there no way to avoid that?
Attached Files
File Type: sma Get Plugin or Get Source (TheNadeSpawn.sma - 490 views - 3.0 KB)
RogerGjyieah is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:47.


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