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

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);
    }
Ty man. but I just noticed that after i i'm GMXing it's saving only the first Teleport, do u know how can i fix this shit?
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: 1 Guest(s)