AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Trash (https://forums.alliedmods.net/forumdisplay.php?f=22)
-   -   error 100: function prototypes do not match (https://forums.alliedmods.net/showthread.php?t=303979)

tagis 12-30-2017 06:38

error 100: function prototypes do not match
 
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;



E1_531G 12-30-2017 07:43

Re: error 100: function prototypes do not match
 
Here is AmxModX section. Go and post in SourceMod section.

tagis 12-30-2017 14:49

Re: error 100: function prototypes do not match
 
Quote:

Originally Posted by E1_531G (Post 2568849)
Here is AmxModX section. Go and post in SourceMod section.

Yup, sorry. My mistake :/


All times are GMT -4. The time now is 02:16.

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