Help Meeee.. 4 Errors!
#4

You need to change the variable name because its already defined
try this
PHP Code:
stock GetClosestCar(playeridexception INVALID_VEHICLE_ID

    new 
        
FloatDistance1//WARNING LINE: 9077 
        
target = -1
        
FloatvPos[3]; 
    if(!
IsPlayerInAnyVehicle(playerid)) GetPlayerPos(playeridvPos[0], vPos[1], vPos[2]); 
    else 
GetVehiclePos(GetPlayerVehicleID(playerid), vPos[0], vPos[1], vPos[2]); 

    for(new 
vMAX_VEHICLESv++) if(GetVehicleModel(v) >= 400
    { 
        if(
!= exception && (target || Distance1 GetDistanceToCar(playeridvvPos[0], vPos[1], vPos[2]))) 
        { 
            
target v
            
Distance1 GetDistanceToCar(playeridvvPos[0], vPos[1], vPos[2]); //ERROR LINE 9088 
        

    } 
    return 
target


stock GetClosestGymTool(playerididx

    new 
Float:Distance1target = -1//WARNING LINE:24613 
    
new Float:xFloat:yFloat:z
    
GetPlayerPos(playeridxyz); 
    for(new 
sMAX_GYMTOOLs++) 
    { 
        if(
target || Distance1 GetDistanceToGymTool(playerididxsxyz)) 
        { 
            
target s
            
Distance1 GetDistanceToGymTool(playerididxsxyz); //ERROR LINE 24621 
        

    } 
    return 
target

======================================================================= 
new 
Title1[128]; //WARNING LINE:22699 
format(Title1sizeof(Title1), "{FFFFFF}Statistic - {33CCFF} %s"GetPlayerNameEx(targetid)); //ERROR LINE:22700 
ShowPlayerDialog(playeridDIALOG_STATSDIALOG_STYLE_MSGBOXTitle1str"Ok"""); //ERROR LINE:22701 
Reply


Messages In This Thread
Help Meeee.. 4 Errors! - by AlfaSufaIndo - 26.06.2018, 23:07
Re: Help Meeee.. 4 Errors! - by AlfaSufaIndo - 26.06.2018, 23:12
Re: Help Meeee.. 4 Errors! - by CodeStyle175 - 26.06.2018, 23:36
Re: Help Meeee.. 4 Errors! - by Slawi - 27.06.2018, 00:19

Forum Jump:


Users browsing this thread: 1 Guest(s)