error 028: invalid subscript (not an array or too many subscripts
#3

pawn Код:
timer ServerMicrobeat[250]()
{
    new
        Float: fExpHealth,
        Float: fCurrentSpeed,
        iVehicle,
        arrDamage[4],
        arrVehParams[7],
        szSpeed[80];
    foreach(Player, i){
        if(GetPlayerState(i) == PLAYER_STATE_DRIVER){
            fCurrentSpeed = player_get_speed(i);
            fVehSpeed[i] = fCurrentSpeed;
            iVehicle = GetPlayerVehicleID(i);
            for(new s=0;s<10;s++){
                if(SpikeStrips[s][sX] != 0){
                    if(VehicleToPoint( 3.0, iVehicle, SpikeStrips[s][sX], SpikeStrips[s][sY], SpikeStrips[s][sZ])){
                        GetVehicleDamageStatus(iVehicle, arrDamage[0], arrDamage[1], arrDamage[2], arrDamage[3]);
                        arrDamage[3] = encode_tires(1, 1, 1, 1);
                        UpdateVehicleDamageStatus(iVehicle, arrDamage[0], arrDamage[1], arrDamage[2], arrDamage[3]);
                    }
                }
            }
            GetVehicleHealth(iVehicle,fExpHealth);
            if(fExpHealth < 350.0 && !IsABike(iVehicle)){
                SetVehicleHealth(iVehicle, 251.0);
                GetVehicleParamsEx(iVehicle, arrVehParams[0], arrVehParams[1], arrVehParams[2], arrVehParams[3], arrVehParams[4], arrVehParams[5], arrVehParams[6]);
                if(arrVehParams[0] == VEHICLE_PARAMS_ON) SetVehicleParamsEx(iVehicle,VEHICLE_PARAMS_OFF, arrVehParams[1], arrVehParams[2], arrVehParams[3], arrVehParams[4], arrVehParams[5], arrVehParams[6]);
                GameTextForPlayer(i, "~r~Motor quemado!", 2500, 3);
                arr_Engine{iVehicle} = 0;
            }
                TextDrawShowForPlayer(i, santiago7);
                TextDrawShowForPlayer(i, santiago5);
                TextDrawShowForPlayer(i, santiago1);
                TextDrawShowForPlayer(i, santiago2);
                TextDrawShowForPlayer(i, santiago3);
                TextDrawShowForPlayer(i, santiago4);
                TextDrawShowForPlayer(i, santiago6);
                format(szSpeed, sizeof(szSpeed),"%d/200",VehicleFuel[iVehicle]);
                TextDrawSetString(santiago7[i], szSpeed);//Aca el error
                format(szSpeed, sizeof(szSpeed),"%.0f", fCurrentSpeed);
                TextDrawSetString(santiago5[i], szSpeed);
        }
    }
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)