3D Label Creation problem. (+REP)
#7

Quote:
Originally Posted by Macronix
Посмотреть сообщение
I guess it shows only the second one, because you are overwriting the variable "TPText" with the second "Create3DTextLabel" everytime. Try to split the variable into two, meaning "TPText1" and "TPText2"
Quote:
Originally Posted by Macronix
Посмотреть сообщение
No, you don't have to create "TPText1", "TPText2", "TPText3" and so on... because the loop does that for you. You just have to create the first two, meaning:

Код:
for(new i = 0; i < MAX_TELEPORTS; i++){
    LoadTeleports
    format(String,sizeof(String),"- Teleport -\n%s",tpDB[i][Description]);
    TPText1[i] = Create3DTextLabel(String, C_WHITE, tpDB[i][X],tpDB[i][Y],tpDB[i][Z], 25.0, tpDB[i][VW], 0);
    TPText2[i] = Create3DTextLabel(String, C_WHITE, tpDB[i][ToX],tpDB[i][ToY],tpDB[i][ToZ], 25.0, tpDB[i][ToVW], 0);
    }
If that doesn't work, try this:

Код:
for(new i = 0; i < MAX_TELEPORTS; i++){
    LoadTeleports
    format(String,sizeof(String),"- Teleport -\n%s",tpDB[i][Description]);
    TPText[i] = Create3DTextLabel(String, C_WHITE, tpDB[i][X],tpDB[i][Y],tpDB[i][Z], 25.0, tpDB[i][VW], 0);
    TPText[i+1] = Create3DTextLabel(String, C_WHITE, tpDB[i][ToX],tpDB[i][ToY],tpDB[i][ToZ], 25.0, tpDB[i][ToVW], 0);
    }
it isn't working, i noticed that the first 3dtext isnt working EVEN if i remove the second 3dtext, what should i do?
EDIT: oh sec it's saving all the positions on X, lemme try to fix
Reply


Messages In This Thread
Teleport isn't saving. (+REP) - by Lirbo - 31.07.2015, 16:38
Re: 3D Label Creation problem. (+REP) - by Jefff - 31.07.2015, 17:28
Re: 3D Label Creation problem. (+REP) - by Lirbo - 31.07.2015, 17:37
AW: 3D Label Creation problem. (+REP) - by Macronix - 31.07.2015, 17:52
Re: AW: 3D Label Creation problem. (+REP) - by Lirbo - 01.08.2015, 10:23
AW: 3D Label Creation problem. (+REP) - by Macronix - 01.08.2015, 12:08
Re: AW: 3D Label Creation problem. (+REP) - by Lirbo - 01.08.2015, 14:22
Re: AW: 3D Label Creation problem. (+REP) - by Lirbo - 01.08.2015, 18:44
Re: 3D Label Creation problem. (+REP) - by xVIP3Rx - 01.08.2015, 18:50
Re: 3D Label Creation problem. (+REP) - by Lirbo - 01.08.2015, 19:23

Forum Jump:


Users browsing this thread: 3 Guest(s)