Hi, habe mal wieder ein Problem
enum dPickUpInfo
{
dPmID,
dPtype,
Float:dPpx,
Float:dPpy,
Float:dPpz,
dPvw
}
new dPickUp[MAX_DPICKUPS][dPickUpInfo];
new dPID;
public LoadDPickUps()
{
new rows,fields;
cache_get_data(rows, fields);
new pck = 0;
if(rows)
{
while(pck < rows)
{
dPickUp[pck][dPmID] = cache_get_field_content_int(pck, "modelid");
dPickUp[pck][dPtype] = cache_get_field_content_int(pck, "type");
dPickUp[pck][dPpx] = cache_get_field_content_float(pck, "x");
dPickUp[pck][dPpy] = cache_get_field_content_float(pck, "y");
dPickUp[pck][dPpz] = cache_get_field_content_float(pck, "z");
dPickUp[pck][dPvw] = cache_get_field_content_int(pck, "vw");
dPickUp[pck][dPID] = CreatePickup(dPickUp[pck][dPmID],dPickUp[pck][dPtype],dPickUp[pck][dPpx],dPickUp[pck][dPpy],dPickUp[pck][dPpz],dPickUp[pck][dPvw]);
pck++;
}
}
printf("[LOAD] Dynamische Pickups wurden geladen (%i/%i)", rows, MAX_DPICKUPS);
return 1;
}
Kriege hier ein 213 tag mismatch: dPickUp[pck][dPID] = CreatePickup(dPickUp[pck][dPmID],dPickUp[pck][dPtype],dPickUp[pck][dPpx],dPickUp[pck][dPpy],dPickUp[pck][dPpz],dPickUp[pck][dPvw]);
Weiß aber nicht warum, Floats sind doch richtig?