18.12.2015, 19:10
(
Последний раз редактировалось Riddick94; 18.12.2015 в 19:52.
)
Quote:
https://sampforum.blast.hk/showthread.php?tid=548986
Read this to get what i mean ^^ |
Spoke with my friend and we have a new workaround for my solution, but here's another problem.
pawn Код:
new object_data[5];
object_data[0] = itemid;
object_data[1] = INVALID_3DTEXT_ID;
float(object_data[2]) = x;
float(object_data[3]) = y;
float(object_data[4]) = z;
printf("Created: %d | Text: %d | X: %f | Y: %f | Z: %f", object_data[0], object_data[1], object_data[2], object_data[3], object_data[4]);
Streamer_SetArrayData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_EXTRA_ID, object_data, sizeof(object_data));
float() = x ... etc. saving floats are spitting out the errors.
Код:
error 022: must be lvalue (non-constant) warning 215: expression has no effect
Does anyone know how to get around that? I can't set "Float:" tag before "object_data[5]". Since it's gonna give me an error from Streamer_SetArrayData.
Thanks for help anyways.
edit://
Got the data finally.
object_data[2] = _;
....
Thanks (: