I get these errors. Can someone help me?
PHP Code:
stock SpawnTriggerMultipleInBox(iZoneIndex)
{
new Float:fMiddle[3], Float:fMins[3], Float:fMaxs[3];
decl String:sZoneName[128];
new Handle:hZone = GetArrayCell(g_hZones, iZoneIndex);
GetArrayString(hZone, 0, sZoneName, sizeof(sZoneName));
GetArrayArray(hZone, 1, fMins, 3);
GetArrayArray(hZone, 2, fMaxs, 3);
new iEnt = CreateEntityByName("trigger_multiple");
DispatchKeyValue(iEnt, "spawnflags", "64");
Format(sZoneName, sizeof(sZoneName), "sm_zone %s", sZoneName);
DispatchKeyValue(iEnt, "targetname", sZoneName);
DispatchKeyValue(iEnt, "wait", "0");
DispatchSpawn(iEnt);
ActivateEntity(iEnt);
SetEntProp(iEnt, Prop_Data, "m_spawnflags", 64 );
GetMiddleOfABox(fMins, fMaxs, fMiddle);
TeleportEntity(iEnt, fMiddle, NULL_VECTOR, NULL_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(iEnt, Prop_Send, "m_vecMins", fMins);
SetEntPropVector(iEnt, Prop_Send, "m_vecMaxs", fMaxs);
SetEntProp(iEnt, Prop_Send, "m_nSolidType", 2);
new iEffects = GetEntProp(iEnt, Prop_Send, "m_fEffects");
iEffects |= 32;
SetEntProp(iEnt, Prop_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_hZones, iZoneIndex);
GetArrayString(hZone, 0, sZoneName, sizeof(sZoneName));
Format(sZoneName, sizeof(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(i, sClassName, sizeof(sClassName))
&& StrContains(sClassName, "trigger_multiple") != -1
&& GetEntPropString(i, Prop_Data, "m_iName", sClassName, sizeof(sClassName))
&& StrEqual(sClassName, sZoneName, false))
{
UnhookSingleEntityOutput(i, "OnStartTouch", EntOut_OnStartTouch); //ERROR 2 HERE
AcceptEntityInput(i, "Kill");
break;
}
}
}