enum wData
{
Text3D:wLabel
}
enum dData
{
Text3D:GunLabel
}
thisData[slotToUse][wLabel] = Create3DTextLabel... etc
dInfo[i][GunLabel] = Create3DTextLabel... etc
Update3DTextLabelText(thisData[i][wLabel], COLOR_WHITE, labelText);
Delete3DTextLabel(thisData[i][wLabel]);
new labelText[128];
format(labelText, sizeof(labelText), "{FFFFFF}Planted by %s; ID %i\n{FE642E}0 Percent Completed\n{FFFFFF}/seizeweed", GetUserName(playerid), individualSlot);
weedData[slotToUse][weedLabel] = Create3DTextLabel(labelText, COLOR_YELLOW, weedData[slotToUse][weedPosition][0], weedData[slotToUse][weedPosition][1], (weedData[slotToUse][weedPosition][2] - 0.5), 30, GetPlayerVirtualWorld(playerid), 0);
format(labelText, sizeof(labelText), "{FFFFFF}Planted by %s; ID %i\n{58D3F7}ready to /harvest\n{FFFFFF}/seizeweed", GetUserName(weedData[i][weedOwner]), i, weedData[i][weedStatus]);
Update3DTextLabelText(weedData[i][weedLabel], COLOR_WHITE, labelText);
Delete3DTextLabel(weedData[i][weedLabel]);
enum wData
{
Text3D:wLabel
}
Hello!
We need all rows of your labels (also the enum..). Please share these. |
enum dData
{
dropAmmo[2],
Float:DropPosX,
Float:DropPosY,
Float:DropPosZ,
DropVWorld,
DropInterior,
DropOwner,
Text3D:GunLabel
};
enum wData
{
weedID,
weedOwner,
weedTime,
weedObject,
weedSlot,
weedStatus,
weedUpdated,
Float:weedPosition[3],
Text3D:weedLabel
}
enum rInfo
{
sCreated,
Float:sX,
Float:sY,
Float:sZ,
sObject,
copid,
Text3D:rbLabel
};
forward destroyWeed(tweedID);
public destroyWeed(tweedID)
{
weedData[tweedID][weedOwner] = INVALID_WEED_ID;
weedData[tweedID][weedSlot] = INVALID_WEED_ID;
weedData[tweedID][weedTime] = INVALID_WEED_ID;
weedData[tweedID][weedStatus] = INVALID_WEED_ID;
weedData[tweedID][weedUpdated] = INVALID_WEED_ID;
weedData[tweedID][weedPosition][0] = 0.0000;
weedData[tweedID][weedPosition][1] = 0.0000;
weedData[tweedID][weedPosition][2] = 0.0000;
Delete3DTextLabel(weedData[tweedID][weedLabel]);
DestroyDynamicObject(weedData[tweedID][weedObject]);
return 1;
}