23.03.2018, 00:15
new Ore3 = CreatePlayerObject(playerid, 19353, -1216.04895, 199.36223, 15.2079, 0.00000, 0.00000, -70.14004);
format(g_str, sizeof(g_str), "Reddite: $%d", SrvProp[svOre3]);
SetPlayerObjectMaterialText(playerid, Ore3, g_str, 0, 140, "Arial", 90, 1, 0xFFFFFFFF, 0, 1);
Basically my issue is that svOre3 updates every once in a while in the server and i'd like to have the Material Text update to reflect the new price, instead of just displaying the price it's spawned with.
How can I achieve this?
format(g_str, sizeof(g_str), "Reddite: $%d", SrvProp[svOre3]);
SetPlayerObjectMaterialText(playerid, Ore3, g_str, 0, 140, "Arial", 90, 1, 0xFFFFFFFF, 0, 1);
Basically my issue is that svOre3 updates every once in a while in the server and i'd like to have the Material Text update to reflect the new price, instead of just displaying the price it's spawned with.
How can I achieve this?