PDA

View Full Version : Yellow Flags



Paceman
05-10-2015, 18:14
Hi,

I wrote a little program to show the flags.
It workes fine, except the yellow flag. This flag was never showen. The double yellow workes fine, but when you can see a yellow flag just on the map, you get not the flag value 4.
Is this just my mistake or is this a bug?

I used the example script (http://forum.projectcarsgame.com/showthread.php?30903-Project-CARS-Shared-Memory-or-how-do-I-make-my-own-app)


#include <windows.h>
#include <conio.h>
#include "sharedmemory.h"

HANDLE fileHandle;
fileHandle = OpenFileMapping( PAGE_READONLY, FALSE, MAP_OBJECT_NAME );
const SharedMemory* sharedData = (SharedMemory*)MapViewOfFile( fileHandle, PAGE_READONLY, 0, 0, sizeof(SharedMemory) );

printf( "CarFlag: (%d)\n", sharedData->mCarFlags);