Variable loosing content
#7

I dont know why binaryDoors is empty afterwards

But there is a much easier version
pawn Код:
//
    new
        binaryDoors[33], // 33 because 32 bits + EOS
        binaryPanels[sizeof binaryDoors]
    ;
    GetVehicleDamageStatus((tveh + 1),
        gVehData[tveh][CarPanels],
        gVehData[tveh][CarDoors],
        gVehData[tveh][CarLights],
        gVehData[tveh][CarTires]
    );
    format(binaryDoors, sizeof binaryDoors, "%032b", gVehData[tveh][CarDoors]);
    format(binaryPanels, sizeof binaryPanels, "%032b", gVehData[tveh][CarPanels]);

    printf("binaryDoors = %s", binaryDoors);
    printf("binaryPanels = %s", binaryPanels);
Reply


Messages In This Thread
Variable loosing content - by Xamxe - 04.02.2012, 21:24
Re: Variable loosing content - by Xamxe - 04.02.2012, 23:22
Re: Variable loosing content - by ғαιιοцт - 04.02.2012, 23:40
Re: Variable loosing content - by Xamxe - 04.02.2012, 23:49
Re: Variable loosing content - by ғαιιοцт - 05.02.2012, 00:08
Re: Variable loosing content - by MP2 - 05.02.2012, 00:55
AW: Re: Variable loosing content - by Nero_3D - 05.02.2012, 00:59
Re: Variable loosing content - by ғαιιοцт - 05.02.2012, 08:08

Forum Jump:


Users browsing this thread: 1 Guest(s)