17.07.2015, 21:39
How do I get the following to work:
(I thought the E_STREAMER_X/Y/Z values are already stored. Below check doesn't help
PHP код:
for(new i; i < MAX_BLACKMARKETS; ++i)
{
if(IsValidDynamic3DTextLabel(arrBlackMarket[i][bm_iTextID]))
{
Streamer_GetFloatData(STREAMER_TYPE_PICKUP, arrBlackMarket[i][bm_iPickupID], E_STREAMER_X, fPos[0]);
Streamer_GetFloatData(STREAMER_TYPE_PICKUP, arrBlackMarket[i][bm_iPickupID], E_STREAMER_Y, fPos[1]);
Streamer_GetFloatData(STREAMER_TYPE_PICKUP, arrBlackMarket[i][bm_iPickupID], E_STREAMER_Z, fPos[2]);
PHP код:
format(szMiscArray, sizeof(szMiscArray), "%s\n{AAAAAA}ID: %d", arrGroupData[iGroupID][g_szGroupName], iCount);
arrBlackMarket[iCount][bm_iTextID] = CreateDynamic3DTextLabel(szMiscArray, COLOR_GREEN, fPos[0], fPos[1], fPos[2] + 1.0, 10.0, .worldid = iVW, .interiorid = iINT);
Streamer_SetFloatData(STREAMER_TYPE_PICKUP, arrBlackMarket[iCount][bm_iPickupID], E_STREAMER_X, fPos[0]);
Streamer_SetFloatData(STREAMER_TYPE_PICKUP, arrBlackMarket[iCount][bm_iPickupID], E_STREAMER_Y, fPos[1]);
Streamer_SetFloatData(STREAMER_TYPE_PICKUP, arrBlackMarket[iCount][bm_iPickupID], E_STREAMER_Z, fPos[2]);