- 31
- 3
Написал в RakClient.cpp
В RakClient.h кинул так:
Выдает ошибку типо:
Что не так?
Код:
void RakClient::SendFakeDriverSyncData(int iSAMPVehicleID, float fVehiclePos[3], float fVehicleHealth, float fMoveSpeed[3])
{
stInCarData InCarData;
BitStream bsInCarData;
struct actor_info *pSelfActor = actor_info_get( ACTOR_SELF, 0 );
InCarData.sVehicleID = iSAMPVehicleID;
InCarData.fMoveSpeed[0] = fMoveSpeed[0];
InCarData.fMoveSpeed[1] = fMoveSpeed[1];
InCarData.fMoveSpeed[2] = fMoveSpeed[2];
InCarData.fPosition[0] = fVehiclePos[0];
InCarData.fPosition[1] = fVehiclePos[1];
InCarData.fPosition[2] = fVehiclePos[2];
InCarData.fVehicleHealth = fVehicleHealth;
InCarData.bytePlayerHealth = (BYTE)pSelfActor->hitpoints;
InCarData.byteArmor = (BYTE)pSelfActor->armor;
if ( cheat_state->state == CHEAT_STATE_VEHICLE )
InCarData.byteCurrentWeapon = g_Players->pLocalPlayer->inCarData.byteCurrentWeapon;
else if ( cheat_state->state == CHEAT_STATE_ACTOR )
InCarData.byteCurrentWeapon = g_Players->pLocalPlayer->onFootData.byteCurrentWeapon;
else InCarData.byteCurrentWeapon = 0;
bsInCarData.Write((BYTE)ID_VEHICLE_SYNC);
bsInCarData.Write((PCHAR)&InCarData,sizeof(stInCarData));
g_RakClient->Send(&bsInCarData, HIGH_PRIORITY, RELIABLE_SEQUENCED, 0);
}
Код:
void SendFakeDriverSyncData(float fVehiclePos[3], float fMoveSpeed[3]);
Код:
Ошибка 15 error C2511: void RakClient::SendFakeDriverSyncData(int,float [],float,float []): перегруженная функция-член не найдена в "RakClient" C:\Users\Денис\Desktop\Новая папка\mod_s0beit_sa-master\src\RakClient.cpp 132 1 mod_sa