29.06.2014, 15:21
pawn Код:
for(new i = 0; i < 3; i++)
{
if(anInfo[playerid][i][ID] == -1) continue;
else
{
new Float:a[5], modelis;
GetVehiclePos(anInfo[playerid][i][real_vehid], a[0],a[1],a[2]);
GetVehicleZAngle(anInfo[playerid][i][real_vehid], a[3]);
GetVehicleHealth(anInfo[playerid][i][real_vehid], a[4]);
modelis = GetVehicleModel(anInfo[playerid][i][real_vehid]);
anInfo[playerid][i][xasis] = a[0];
anInfo[playerid][i][yasis] = a[1];
anInfo[playerid][i][zasis] = a[2];
anInfo[playerid][i][angle] = a[3];
anInfo[playerid][i][health] = a[4];
anInfo[playerid][i][model] = modelis;
}
}
pawn Код:
// enum
enum Game4
{
ID,
model,
Float:xasis,
Float:yasis,
Float:zasis,
Float:angle,
owner[30],
Float:health,
col1,
col2,
real_vehid
};
new anInfo[MAX_PLAYERS][3][Game4];
Now, my problem is, that new information doesn't write into those enums and I don't know why (