SA-MP Forums Archive
Problem with Create3DTextLabel - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with Create3DTextLabel (/showthread.php?tid=551066)



Problem with Create3DTextLabel - CoR3 - 16.12.2014

Hey, i have this code, but i have 1 problem, when i log in in my server, i can see the Crate3DTextLabel like this: [Venta] ID:%d.... and the sv doesn't show the id number!!!

Quote:

format(string, sizeof(string), "[Venta]\n ID: %d.",HouseInfo[h][hPickupID]);
Create3DTextLabel(string,0x00AE00FF, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.75,20.0,0,1);

What's my mistake??


Re: Problem with Create3DTextLabel - Divergent - 16.12.2014

It shows "[Venta] ID: %d" in game? Try this

Код:
format(string, sizeof(string), "[Venta]\n ID: %i.", HouseInfo[h][hPickupID]);
Create3DTextLabel(string,0x00AE00FF, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.75,20.0,0,1);
I doubt that this was the cause but it could be.

Anyways, i = integer, d = decimal, s = string, f = float.