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

Solved Function prototypes do not match


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
OXYD
AlliedModders Donor
Join Date: Aug 2019
Location: pluto
Old 09-08-2020 , 20:59   Function prototypes do not match
Reply With Quote #1

Hello there!

I get these errors. Can someone help me?
HTML Code:
// F:\ASX\carantina\Update 1808\.vRAC_AntiRush.sp(2407) : error 100: function prototypes do not match
// F:\ASX\carantina\Update 1808\.vRAC_AntiRush.sp(2429) : error 100: function prototypes do not match
PHP Code:
stock SpawnTriggerMultipleInBox(iZoneIndex)
{
    new 
Float:fMiddle[3], Float:fMins[3], Float:fMaxs[3];
    
    
decl String:sZoneName[128];
    new 
Handle:hZone GetArrayCell(g_hZonesiZoneIndex);
    
GetArrayString(hZone0sZoneNamesizeof(sZoneName));
    
GetArrayArray(hZone1fMins3);
    
GetArrayArray(hZone2fMaxs3);
    
    new 
iEnt CreateEntityByName("trigger_multiple");
    
    
DispatchKeyValue(iEnt"spawnflags""64");
    
Format(sZoneNamesizeof(sZoneName), "sm_zone %s"sZoneName);
    
DispatchKeyValue(iEnt"targetname"sZoneName);
    
DispatchKeyValue(iEnt"wait""0");
    
    
DispatchSpawn(iEnt);
    
ActivateEntity(iEnt);
    
SetEntProp(iEntProp_Data"m_spawnflags"64 );
    
    
GetMiddleOfABox(fMinsfMaxsfMiddle);
    
    
TeleportEntity(iEntfMiddleNULL_VECTORNULL_VECTOR);
    
SetEntityModel(iEnt"models/items/car_battery01.mdl");
    
    
// Have the mins always be negative
    
fMins[0] = fMins[0] - fMiddle[0];
    if(
fMins[0] > 0.0)
        
fMins[0] *= -1.0;
    
fMins[1] = fMins[1] - fMiddle[1];
    if(
fMins[1] > 0.0)
        
fMins[1] *= -1.0;
    
fMins[2] = fMins[2] - fMiddle[2];
    if(
fMins[2] > 0.0)
        
fMins[2] *= -1.0;
    
    
// And the maxs always be positive
    
fMaxs[0] = fMaxs[0] - fMiddle[0];
    if(
fMaxs[0] < 0.0)
        
fMaxs[0] *= -1.0;
    
fMaxs[1] = fMaxs[1] - fMiddle[1];
    if(
fMaxs[1] < 0.0)
        
fMaxs[1] *= -1.0;
    
fMaxs[2] = fMaxs[2] - fMiddle[2];
    if(
fMaxs[2] < 0.0)
        
fMaxs[2] *= -1.0;
    
    
SetEntPropVector(iEntProp_Send"m_vecMins"fMins);
    
SetEntPropVector(iEntProp_Send"m_vecMaxs"fMaxs);
    
SetEntProp(iEntProp_Send"m_nSolidType"2);
    
    new 
iEffects GetEntProp(iEntProp_Send"m_fEffects");
    
iEffects |= 32;
    
SetEntProp(iEntProp_Send"m_fEffects"iEffects);
    
    
HookSingleEntityOutput(iEnt"OnStartTouch"EntOut_OnStartTouch); //ERROR 1 HERE
}

stock KillTriggerEntity(iZoneIndex)
{
    new 
Handle:hZone;
    
decl String:sZoneName[128];
    
hZone GetArrayCell(g_hZonesiZoneIndex);
    
GetArrayString(hZone0sZoneNamesizeof(sZoneName));
    
Format(sZoneNamesizeof(sZoneName), "sm_zone %s"sZoneName);
    
    new 
iEnts GetMaxEntities();
    
decl String:sClassName[256];
    for(new 
i=MaxClients;i<iEnts;i++)
    {
        if(
IsValidEntity(i)
        && 
IsValidEdict(i)
        && 
GetEdictClassname(isClassNamesizeof(sClassName))
        && 
StrContains(sClassName"trigger_multiple") != -1
        
&& GetEntPropString(iProp_Data"m_iName"sClassNamesizeof(sClassName))
        && 
StrEqual(sClassNamesZoneNamefalse))
        {
            
UnhookSingleEntityOutput(i"OnStartTouch"EntOut_OnStartTouch); //ERROR 2 HERE
            
AcceptEntityInput(i"Kill");
            break;
        }
    }

__________________
ADD ME ON STEAM - https://steamcommunity.com/id/kenoxyd
89.40.104.210:27015 // COMPETITIVE SERVER
DISCORD: KENOXYD#9098

Last edited by OXYD; 09-10-2020 at 12:44.
OXYD is offline
 


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


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