Raised This Month: $32 Target: $400
 8% 

[L4D] Error: Prototype does not match


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Marcus101RR
Veteran Member
Join Date: Aug 2009
Location: Tampa, FL
Old 09-06-2013 , 23:29   [L4D] Error: Prototype does not match
Reply With Quote #1

It's an exact copy of another plugin I have and compiled it with a different item, and it works. What am I overlooking?

PHP Code:
public event_WeaponFireAfter(Handle:event, const String:name[], bool:Broadcast)
{
    
// 10
    
new WeaponID GetEventInt(event"weaponid");
    if(
WeaponID == 9)
    {
        
CreateMolotovHook();
    }
}


CreateMolotovHook()
{
    new 
iEntity INVALID_ENT_REFERENCE;
    while ((
iEntity FindEntityByClassname(iEntity"molotov_projectile")) != INVALID_ENT_REFERENCE)
    {
        
HookSingleEntityOutput(iEntity"OnBreak"MolotovBreaktrue);
        
HookSingleEntityOutput(iEntity"OnIgnite"MolotovBreak);
        
HookSingleEntityOutput(iEntity"OnKilled"MolotovBreak);
    }
}

MolotovBreak()
{
    
PrintToChatAll("Molotov Hooked and Broke");

__________________
Marcus101RR is offline
Send a message via AIM to Marcus101RR Send a message via Skype™ to Marcus101RR
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 09-06-2013 , 23:32   Re: [L4D] Error: Prototype does not match
Reply With Quote #2

http://docs.sourcemod.net/api/index....d=show&id=901& ?
__________________
thetwistedpanda is offline
Marcus101RR
Veteran Member
Join Date: Aug 2009
Location: Tampa, FL
Old 09-06-2013 , 23:33   Re: [L4D] Error: Prototype does not match
Reply With Quote #3

Quote:
Originally Posted by thetwistedpanda View Post
Yeah, i am not thinking today, i missed public declaration. -_-;
__________________
Marcus101RR is offline
Send a message via AIM to Marcus101RR Send a message via Skype™ to Marcus101RR
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 12:45.


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