[C++] stInCarData Error

Status
Not open for further replies.
P

pa0neix

Guest
I get this error : error C2061: syntax error : identifier 'stInCarData'

Code:
void SendFakeDriverFullSyncData(stInCarData *picSync, int iUseCarPos);

Code:
void RakClient::SendFakeDriverFullSyncData(stInCarData *picSync, int iUseCarPos)
{
	if (picSync == NULL)
		return;

	BitStream bsVehicleSync;

	if (iUseCarPos)
	{
		int car_id = (int)(((DWORD)g_Vehicles->pGTA_Vehicle[picSync->sVehicleID]) - (DWORD)pool_vehicle->start) / 2584;
		struct vehicle_info *vinfo = vehicle_info_get(car_id, 0);

		if (!vinfo)
			return;

		float fPos[3];
		vect3_copy(&vinfo->base.matrix[4 * 3], fPos);

		picSync->fPosition[0] = fPos[0];
		picSync->fPosition[1] = fPos[1];
		picSync->fPosition[2] = fPos[2];
	}

	bsVehicleSync.Write((BYTE)ID_VEHICLE_SYNC);
	bsVehicleSync.Write((PCHAR)picSync, sizeof(stInCarData));

	g_RakClient->Send(&bsVehicleSync);
}
 

0x_

Wtf I'm not new....
Staff member
Administrator
Joined
Feb 18, 2013
Messages
1,123
Reaction score
177
Stop it finally, in one topic you actually stated you know c++ basics.
It's getting annoying, you don't even try to google.
OR understand this fcking COMPILER it tells you what's wrong.
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
273
Also, you asked the same dumb question on another account -> http://ugbase.eu/help-27/(c)-identifier-'stincardata'/

Copy the error code, in this case 'error C2061' and google it, check either msdn or stackoverflow.
 
Status
Not open for further replies.
Top