[Help] function heading differs from prototype
#1

PHP код:
HackDetect.pwn(553) : error 025: function heading differs from prototype 
Updates include the latest samp,but still the error

PHP код:
public OnUnoccupiedVehicleUpdate(vehicleidplayeridpassenger_seatFloat:new_xFloat:new_yFloat:new_zFloat:vel_xFloat:vel_yFloat:vel_z)
{
    if(
GetTickCountDifference(GetTickCount(), vt_MovedFarTick[vehicleid]) < 5000)
        return 
1;
    if(
GetTickCountDifference(GetTickCount(), GetPlayerSpawnTick(playerid)) < 15000)
        return 
1;
    if(
GetTickCountDifference(GetTickCount(), GetPlayerVehicleExitTick(playerid)) < 5000)
        return 
1;
    if(
GetTickCountDifference(GetTickCount(), GetVehicleLastUseTick(vehicleid)) < 1000)
        return 
1;
    if(
IsVehicleOccupied(vehicleid))
        return 
1;
    new
        
Float:x,
        
Float:y,
        
Float:z,
        
Float:distance;
    
GetVehiclePos(vehicleidxyz);
    
distance Distance(xyznew_xnew_ynew_z);
    if(
IsNaN(distance))
    {
        
RespawnVehicle(vehicleid);
        return 
1;
    }
    if(
VEHICLE_TELEPORT_DISTANCE distance 500.0)
    {
        new 
Float:distancetoplayer 10000.0;
        
vt_MovedFarPlayer[vehicleid] = GetClosestPlayerFromPoint(xyzdistancetoplayer);
        if(
distancetoplayer 10.0)
        {
            
vt_MovedFar[vehicleid] = true;
            
vt_MovedFarTick[vehicleid] = GetTickCount();
            foreach(new 
veh_Index)
            {
                if(
GetVehicleTrailer(i) == vehicleid)
                    return 
1;
            }
            new
                
name[MAX_PLAYER_NAME],
                
vehicletype,
                
vehiclename[MAX_VEHICLE_TYPE_NAME],
                
owner[MAX_PLAYER_NAME],
                
reason[128],
                
info[128];
            
GetPlayerName(vt_MovedFarPlayer[vehicleid], nameMAX_PLAYER_NAME);
            
vehicletype GetVehicleType(vehicleid);
            
GetVehicleTypeName(vehicletypevehiclename);
            
GetVehicleOwner(vehicleidowner);
            if(
isnull(owner))
                
format(reasonsizeof(reason), "Teleported a %s %.0fm"vehiclenamedistance);
            else
                
format(reasonsizeof(reason), "Teleported a %s (%s's) %.0fm"vehiclenameownerdistance);
            
format(infosizeof(info), "%f, %f, %f"new_xnew_ynew_z);
            
ReportPlayer(namereason, -1REPORT_TYPE_CARTELExyzinfo);
            
// RespawnVehicle(vehicleid);
            
return 0;
        }
    }
    return 
1;

Reply
#2

Код:
(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z)
Make sure they're the same parameters..
Reply
#3

help me, I not detect errors
Reply
#4

Your server package is most likely outdated. The position and velocity parameters were only added in (several revisions of) 0.3z.
Reply
#5

still no action
Reply
#6

Up .. help
Reply
#7

Quote:
Originally Posted by Vince
Посмотреть сообщение
Your server package is most likely outdated. The position and velocity parameters were only added in (several revisions of) 0.3z.
I update it as 3z RC5
Reply
#8

Like I said, outdated. The latest version is 0.3z R4, which is not on the download page for some reason, but can be downloaded here.

RC = Release Candidate
R = Revision
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)