Raised This Month: $12 Target: $400
 3% 

error 100: function prototypes do not match


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tagis
Junior Member
Join Date: Nov 2017
Old 12-30-2017 , 06:38   error 100: function prototypes do not match
Reply With Quote #1

Hello! I have a problem with my code.

I'm trying to write a plugin, which gives a flshband and additional 10HP at start of round. It didn't work without timer, so i decided to add it. But then occurred that error: "error 100: function prototypes do not match".

Could you look at my code, and help me, what am I doing wrong?

PHP Code:
public void OnPluginStart()
{
    
HookEvent("player_spawn"PlayerSpawn);
}
int offsetFlash;
public 
void OnMapStart()
{
    
int entindex;

    
entindex CreateEntityByName("weapon_flashbang");
    
DispatchSpawn(entindex);
    
offsetFlash GetEntProp(entindexProp_Send"m_iPrimaryAmmoType");
    
AcceptEntityInput(entindex"Kill");

}
public 
Action PlayerSpawn(Event event, const char[] namebool dontBroadcast)
{
    
int client GetClientOfUserId(GetEventInt(event"userid"));
    if(!
IsPlayerVIP(client)) return;
    
vipid client;
    
CreateTimer(1.0VipSpawnclient);
    
//SetEntityHealth(client, 110);
    //for(int x = 0; x < 1; x++)
    //    if(GetEntProp(client, Prop_Send, "m_iAmmo", _, offsetFlash) < 1) GivePlayerItem(client, "weapon_flashbang");
}
public 
void VipSpawn(int client)
{
    
SetEntityHealth(client110);
    for(
int x 01x++)
        if(
GetEntProp(clientProp_Send"m_iAmmo"_offsetFlash) < 1GivePlayerItem(client"weapon_flashbang");
}
stock bool IsPlayerVIP(int client)
{
    if(
GetUserFlagBits(client) & ADMFLAG_CUSTOM5)
        return 
true;
    return 
false;

tagis is offline
E1_531G
Senior Member
Join Date: Dec 2017
Old 12-30-2017 , 07:43   Re: error 100: function prototypes do not match
Reply With Quote #2

Here is AmxModX section. Go and post in SourceMod section.
__________________
My English is A0
E1_531G is offline
tagis
Junior Member
Join Date: Nov 2017
Old 12-30-2017 , 14:49   Re: error 100: function prototypes do not match
Reply With Quote #3

Quote:
Originally Posted by E1_531G View Post
Here is AmxModX section. Go and post in SourceMod section.
Yup, sorry. My mistake :/
tagis is offline
Reply


Thread Tools
Display Modes

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 08:13.


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