29.12.2013, 21:02
Hello!
I have a big problem in my server.
When I use /createhouse (that cmd make a house checkpoint with label) the chekpoint is created and a house label like this:
Thats nice,BUT sometimes (MOST of THE TIME) when I use /createhouse only checkpoint is created ,but not label, like this:
So,the problem is that sometimes when I use /createhouse ,label shows and sometimes not,I dont know why is that,maybe some wrong values?
So,I want that everytime when I use /createhouse there would be always created checkpoint with label.
House label code:
HOUSELABEL1 Define code ---> That shows when player buy house (other label) ,that works fine:
Please help,I give +REP if you help me!
I have a big problem in my server.
When I use /createhouse (that cmd make a house checkpoint with label) the chekpoint is created and a house label like this:
Thats nice,BUT sometimes (MOST of THE TIME) when I use /createhouse only checkpoint is created ,but not label, like this:
So,the problem is that sometimes when I use /createhouse ,label shows and sometimes not,I dont know why is that,maybe some wrong values?
So,I want that everytime when I use /createhouse there would be always created checkpoint with label.
House label code:
Код:
format(labeltext, sizeof(labeltext), HOUSELABEL1, HouseInfo[h][hName], h, HouseInfo[h][hOwner], Comma(HouseInfo[h][hValue])); HouseCPOut[h] = CreateDynamicCP(hX, hY, hZ, 1.5, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid), -1, 5.0); HouseCPInt[h] = CreateDynamicCP(2196.84, -1204.36, 1049.02, 1.5, (h + 1000), 6, -1, 20.0); HouseLabel[h] = Create3DTextLabel("Owner: No-Owner\nHouse Name: No-Title", -1, hX, hY, hZ+0.5, 20.0, GetPlayerVirtualWorld(playerid), 1);
Код:
#define HOUSELABEL1 "{00bbff}House Name: {FFFFFF}%s(%d)\n{00bbff}House Owner: {FFFFFF}%s\n{00bbff}House Value: {FFFFFF}$%s"