3D Label an auto

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • CopCar[0] = AddStaticVehicleEx(497,1565.3275,-1705.5417,28.5746,90.0488,103,1,-1); // LSPD heli
    CopCar[1] = AddStaticVehicleEx(497,1565.7350,-1644.4679,28.5778,90.2004,103,1,-1); // LSPD heli
    CopCar[2] = AddStaticVehicleEx(596,1535.7976,-1667.9401,13.1045,359.8312,1,103,-1); // LSPDCAR
    CopCar[3] = AddStaticVehicleEx(596,1535.9082,-1676.8617,13.1051,0.0376,1,103,-1); // LSPDCAR
    CopCar[4] = AddStaticVehicleEx(596,1601.0520,-1684.0634,5.6141,89.9282,1,103,-1); // LSPDcar
    CopCar[5] = AddStaticVehicleEx(596,1601.2188,-1688.0580,5.6123,89.0101,1,103,-1); // LSPDcar
    CopCar[6] = AddStaticVehicleEx(596,1601.0955,-1692.3639,5.6117,90.7693,1,103,-1); // LSPDcar
    CopCar[7] = AddStaticVehicleEx(596,1601.2831,-1696.3300,5.6110,91.1211,1,103,-1); // LSPDcar
    CopCar[8] = AddStaticVehicleEx(596,1601.4122,-1700.1632,5.6116,91.0425,1,103,-1); // LSPDcar
    CopCar[9] = AddStaticVehicleEx(599,1558.8849,-1711.6445,6.0800,1.4049,1,103,-1); // lspdcar
    CopCar[10] = AddStaticVehicleEx(596,1601.4215,-1704.2965,5.6122,91.7718,1,103,-1); // lspdcar
    CopCar[11] = AddStaticVehicleEx(599,1566.2745,-1711.5134,6.0843,359.5730,1,103,-1); // lspdcar
    CopCar[12] = AddStaticVehicleEx(523,1591.6399,-1712.0607,5.4585,359.7415,1,103,-1); // lspdbike
    CopCar[13] = AddStaticVehicleEx(523,1583.6204,-1712.1659,5.4621,1.6831,1,103,-1); // lspdbike
    CopCar[14] = AddStaticVehicleEx(523,1587.5050,-1711.9180,5.4602,1.5247,1,103,-1); // LSPDBike
    CopCar[15] = AddStaticVehicleEx(523,1578.7178,-1712.0957,5.4610,358.4359,1,103,-1); // lspd bike
    CopCar[16] = AddStaticVehicleEx(427,1529.0867,-1687.7498,6.0225,270.6141,1,103,-1); // lspd car
    CopCar[17] = AddStaticVehicleEx(427,1529.0754,-1683.8232,6.0224,271.2065,1,103,-1); // lspd car


    Also will da zB nen 3D Text hin machen
    an so nen CopCar
    wie geht das ??

  • Er attachet es nur an einem Copcar ;).


    Zitat

    for(new i = 0; i < 18; i++)
    {
    new Text3D:3dtext = Create3DTextLabel("Text",0x00FF01,00.00,00.00,00.00,40.0,0);


    Attach3DTextLabelToVehicle( 3dtext, CopCar[i], 0.0, 0.0, 2.0); <-- Hier wird es nur an ein CopCar[] attachet
    }


    Das CopCar[i] beinhaltet die ID vom Copcar also die Fahrzeug ID dadurch wird die schleife alle 18 Cars durchgehen und alle 18 Cars attchen, und nur 18 stück ;)


    EDIT:


    Bisschen was hinzugefügt

  • ja aber hää warte ich habe die Cars ja schon wo drunter muss ich nun was schreiben ?


  • RottenApple das hat er doch schon. Lesen Bildet.


    @R3DM4N


    OnGameModeInit unter die Cars ;)


    EDIT:


    Voller Code:



    public OnGameModeInit()
    {
    CopCar[0] = AddStaticVehicleEx(497,1565.3275,-1705.5417,28.5746,90.0488,103,1,-1); // LSPD heli
    CopCar[1] = AddStaticVehicleEx(497,1565.7350,-1644.4679,28.5778,90.2004,103,1,-1); // LSPD heli
    CopCar[2] = AddStaticVehicleEx(596,1535.7976,-1667.9401,13.1045,359.8312,1,103,-1); // LSPDCAR
    CopCar[3] = AddStaticVehicleEx(596,1535.9082,-1676.8617,13.1051,0.0376,1,103,-1); // LSPDCAR
    CopCar[4] = AddStaticVehicleEx(596,1601.0520,-1684.0634,5.6141,89.9282,1,103,-1); // LSPDcar
    CopCar[5] = AddStaticVehicleEx(596,1601.2188,-1688.0580,5.6123,89.0101,1,103,-1); // LSPDcar
    CopCar[6] = AddStaticVehicleEx(596,1601.0955,-1692.3639,5.6117,90.7693,1,103,-1); // LSPDcar
    CopCar[7] = AddStaticVehicleEx(596,1601.2831,-1696.3300,5.6110,91.1211,1,103,-1); // LSPDcar
    CopCar[8] = AddStaticVehicleEx(596,1601.4122,-1700.1632,5.6116,91.0425,1,103,-1); // LSPDcar
    CopCar[9] = AddStaticVehicleEx(599,1558.8849,-1711.6445,6.0800,1.4049,1,103,-1); // lspdcar
    CopCar[10] = AddStaticVehicleEx(596,1601.4215,-1704.2965,5.6122,91.7718,1,103,-1); // lspdcar
    CopCar[11] = AddStaticVehicleEx(599,1566.2745,-1711.5134,6.0843,359.5730,1,103,-1); // lspdcar
    CopCar[12] = AddStaticVehicleEx(523,1591.6399,-1712.0607,5.4585,359.7415,1,103,-1); // lspdbike
    CopCar[13] = AddStaticVehicleEx(523,1583.6204,-1712.1659,5.4621,1.6831,1,103,-1); // lspdbike
    CopCar[14] = AddStaticVehicleEx(523,1587.5050,-1711.9180,5.4602,1.5247,1,103,-1); // LSPDBike
    CopCar[15] = AddStaticVehicleEx(523,1578.7178,-1712.0957,5.4610,358.4359,1,103,-1); // lspd bike
    CopCar[16] = AddStaticVehicleEx(427,1529.0867,-1687.7498,6.0225,270.6141,1,103,-1); // lspd car
    CopCar[17] = AddStaticVehicleEx(427,1529.0754,-1683.8232,6.0224,271.2065,1,103,-1); // lspd car


    for(new i = 0; i < 18; i++)
    {
    new Text3D:3dtext = Create3DTextLabel("Text",0x00FF01,00.00,00.00,00.00,40.0,0);


    Attach3DTextLabelToVehicle( 3dtext, CopCar[i], 0.0, 0.0, 2.0);
    }
    return 1;
    }

  • {
    CopCar[0] = AddStaticVehicleEx(497,1565.3275,-1705.5417,28.5746,90.0488,103,1,-1); // LSPD heli
    CopCar[1] = AddStaticVehicleEx(497,1565.7350,-1644.4679,28.5778,90.2004,103,1,-1); // LSPD heli
    CopCar[2] = AddStaticVehicleEx(596,1535.7976,-1667.9401,13.1045,359.8312,1,103,-1); // LSPDCAR
    CopCar[3] = AddStaticVehicleEx(596,1535.9082,-1676.8617,13.1051,0.0376,1,103,-1); // LSPDCAR
    CopCar[4] = AddStaticVehicleEx(596,1601.0520,-1684.0634,5.6141,89.9282,1,103,-1); // LSPDcar
    CopCar[5] = AddStaticVehicleEx(596,1601.2188,-1688.0580,5.6123,89.0101,1,103,-1); // LSPDcar
    CopCar[6] = AddStaticVehicleEx(596,1601.0955,-1692.3639,5.6117,90.7693,1,103,-1); // LSPDcar
    CopCar[7] = AddStaticVehicleEx(596,1601.2831,-1696.3300,5.6110,91.1211,1,103,-1); // LSPDcar
    CopCar[8] = AddStaticVehicleEx(596,1601.4122,-1700.1632,5.6116,91.0425,1,103,-1); // LSPDcar
    CopCar[9] = AddStaticVehicleEx(599,1558.8849,-1711.6445,6.0800,1.4049,1,103,-1); // lspdcar
    CopCar[10] = AddStaticVehicleEx(596,1601.4215,-1704.2965,5.6122,91.7718,1,103,-1); // lspdcar
    CopCar[11] = AddStaticVehicleEx(599,1566.2745,-1711.5134,6.0843,359.5730,1,103,-1); // lspdcar
    CopCar[12] = AddStaticVehicleEx(523,1591.6399,-1712.0607,5.4585,359.7415,1,103,-1); // lspdbike
    CopCar[13] = AddStaticVehicleEx(523,1583.6204,-1712.1659,5.4621,1.6831,1,103,-1); // lspdbike
    CopCar[14] = AddStaticVehicleEx(523,1587.5050,-1711.9180,5.4602,1.5247,1,103,-1); // LSPDBike
    CopCar[15] = AddStaticVehicleEx(523,1578.7178,-1712.0957,5.4610,358.4359,1,103,-1); // lspd bike
    CopCar[16] = AddStaticVehicleEx(427,1529.0867,-1687.7498,6.0225,270.6141,1,103,-1); // lspd car
    CopCar[17] = AddStaticVehicleEx(427,1529.0754,-1683.8232,6.0224,271.2065,1,103,-1); // lspd car


    for(new i = 0; i < 18; i++)
    {
    new Text3D:3dtext = Create3DTextLabel("Text",0x00FF01,00.00,00.00,00.00,40.0,0);


    Attach3DTextLabelToVehicle( 3dtext, CopCar[i], 0.0, 0.0, 2.0);
    }
    return 1;
    }


    C:\DOKUME~1\ADMINI~1\Desktop\AWESOM~1\GAMEMO~1\Awesome.pwn(12686) : warning 235: public function lacks forward declaration (symbol "PayDay")
    C:\DOKUME~1\ADMINI~1\Desktop\AWESOM~1\GAMEMO~1\Awesome.pwn(13205) : warning 204: symbol is assigned a value that is never used: "warrests"
    C:\DOKUME~1\ADMINI~1\Desktop\AWESOM~1\GAMEMO~1\Awesome.pwn(13744) : warning 217: loose indentation
    C:\DOKUME~1\ADMINI~1\Desktop\AWESOM~1\GAMEMO~1\Awesome.pwn(13959) : warning 217: loose indentation
    C:\DOKUME~1\ADMINI~1\Desktop\AWESOM~1\GAMEMO~1\Awesome.pwn(13979) : warning 217: loose indentation
    C:\DOKUME~1\ADMINI~1\Desktop\AWESOM~1\GAMEMO~1\Awesome.pwn(13981) : error 001: expected token: "-identifier-", but found "3"
    C:\DOKUME~1\ADMINI~1\Desktop\AWESOM~1\GAMEMO~1\Awesome.pwn(13983) : warning 217: loose indentation
    C:\DOKUME~1\ADMINI~1\Desktop\AWESOM~1\GAMEMO~1\Awesome.pwn(13983) : error 029: invalid expression, assumed zero
    C:\DOKUME~1\ADMINI~1\Desktop\AWESOM~1\GAMEMO~1\Awesome.pwn(13983) : error 017: undefined symbol "dtext"
    C:\DOKUME~1\ADMINI~1\Desktop\AWESOM~1\GAMEMO~1\Awesome.pwn(13983) : error 029: invalid expression, assumed zero
    C:\DOKUME~1\ADMINI~1\Desktop\AWESOM~1\GAMEMO~1\Awesome.pwn(13983) : fatal error 107: too many error messages on one line


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    5 Errors.


    öhm


  • new carid;
    for(new i = 0; i < sizeof(CopCar); i++)
    {
    if(carid == CopCar[i])
    {
    new Text3D:CopCar3D = Create3DTextLabel("Cop Car",0x0066CCFF,30.0,30.0,5.0,30.0,0);
    Attach3DTextLabelToVehicle(CopCar3D , CopCar[i], 0.0, 0.0, 0.0);
    return 1;
    }
    }


    Einmal editiert, zuletzt von KING AMOK ()

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • C:\DOKUME~1\ADMINI~1\Desktop\AWESOM~1\GAMEMO~1\Awesome.pwn(12686) : warning 235: public function lacks forward declaration (symbol "PayDay")
    C:\DOKUME~1\ADMINI~1\Desktop\AWESOM~1\GAMEMO~1\Awesome.pwn(13205) : warning 204: symbol is assigned a value that is never used: "warrests"
    C:\DOKUME~1\ADMINI~1\Desktop\AWESOM~1\GAMEMO~1\Awesome.pwn(13744) : warning 217: loose indentation
    C:\DOKUME~1\ADMINI~1\Desktop\AWESOM~1\GAMEMO~1\Awesome.pwn(13959) : warning 217: loose indentation
    C:\DOKUME~1\ADMINI~1\Desktop\AWESOM~1\GAMEMO~1\Awesome.pwn(13980) : warning 217: loose indentation
    C:\DOKUME~1\ADMINI~1\Desktop\AWESOM~1\GAMEMO~1\Awesome.pwn(13985) : warning 217: loose indentation
    C:\DOKUME~1\ADMINI~1\Desktop\AWESOM~1\GAMEMO~1\Awesome.pwn(13986) : warning 217: loose indentation
    C:\DOKUME~1\ADMINI~1\Desktop\AWESOM~1\GAMEMO~1\Awesome.pwn(13990) : warning 217: loose indentation
    C:\DOKUME~1\ADMINI~1\Desktop\AWESOM~1\GAMEMO~1\Awesome.pwn(13992) : error 001: expected token: "-identifier-", but found "3"
    C:\DOKUME~1\ADMINI~1\Desktop\AWESOM~1\GAMEMO~1\Awesome.pwn(13994) : warning 217: loose indentation
    C:\DOKUME~1\ADMINI~1\Desktop\AWESOM~1\GAMEMO~1\Awesome.pwn(13994) : error 029: invalid expression, assumed zero
    C:\DOKUME~1\ADMINI~1\Desktop\AWESOM~1\GAMEMO~1\Awesome.pwn(13994) : error 017: undefined symbol "dtext"
    C:\DOKUME~1\ADMINI~1\Desktop\AWESOM~1\GAMEMO~1\Awesome.pwn(13994) : error 029: invalid expression, assumed zero
    C:\DOKUME~1\ADMINI~1\Desktop\AWESOM~1\GAMEMO~1\Awesome.pwn(13994) : fatal error 107: too many error messages on one line


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    5 Errors.

    {
    CopCar[0] = AddStaticVehicleEx(497,1565.3275,-1705.5417,28.5746,90.0488,103,1,-1); // LSPD heli
    CopCar[1] = AddStaticVehicleEx(497,1565.7350,-1644.4679,28.5778,90.2004,103,1,-1); // LSPD heli
    CopCar[2] = AddStaticVehicleEx(596,1535.7976,-1667.9401,13.1045,359.8312,1,103,-1); // LSPDCAR
    CopCar[3] = AddStaticVehicleEx(596,1535.9082,-1676.8617,13.1051,0.0376,1,103,-1); // LSPDCAR
    CopCar[4] = AddStaticVehicleEx(596,1601.0520,-1684.0634,5.6141,89.9282,1,103,-1); // LSPDcar
    CopCar[5] = AddStaticVehicleEx(596,1601.2188,-1688.0580,5.6123,89.0101,1,103,-1); // LSPDcar
    CopCar[6] = AddStaticVehicleEx(596,1601.0955,-1692.3639,5.6117,90.7693,1,103,-1); // LSPDcar
    CopCar[7] = AddStaticVehicleEx(596,1601.2831,-1696.3300,5.6110,91.1211,1,103,-1); // LSPDcar
    CopCar[8] = AddStaticVehicleEx(596,1601.4122,-1700.1632,5.6116,91.0425,1,103,-1); // LSPDcar
    CopCar[9] = AddStaticVehicleEx(599,1558.8849,-1711.6445,6.0800,1.4049,1,103,-1); // lspdcar
    CopCar[10] = AddStaticVehicleEx(596,1601.4215,-1704.2965,5.6122,91.7718,1,103,-1); // lspdcar
    CopCar[11] = AddStaticVehicleEx(599,1566.2745,-1711.5134,6.0843,359.5730,1,103,-1); // lspdcar
    CopCar[12] = AddStaticVehicleEx(523,1591.6399,-1712.0607,5.4585,359.7415,1,103,-1); // lspdbike
    CopCar[13] = AddStaticVehicleEx(523,1583.6204,-1712.1659,5.4621,1.6831,1,103,-1); // lspdbike
    CopCar[14] = AddStaticVehicleEx(523,1587.5050,-1711.9180,5.4602,1.5247,1,103,-1); // LSPDBike
    CopCar[15] = AddStaticVehicleEx(523,1578.7178,-1712.0957,5.4610,358.4359,1,103,-1); // lspd bike
    CopCar[16] = AddStaticVehicleEx(427,1529.0867,-1687.7498,6.0225,270.6141,1,103,-1); // lspd car
    CopCar[17] = AddStaticVehicleEx(427,1529.0754,-1683.8232,6.0224,271.2065,1,103,-1); // lspd car

    new carid;
    for(new i = 0; i < sizeof(CopCar); i++)
    {
    if(carid == CopCar[i])
    {
    new Text3D:CopCar3D = Create3DTextLabel("Cop Car",0x0066CCFF,30.0,30.0,5.0,30.0,0);
    Attach3DTextLabelToVehicle(CopCar3D , CopCar[i], 0.0, 0.0, 0.0);
    return 1;
    }
    }


    for(new i = 0; i < 18; i++)
    {
    new Text3D:3dtext = Create3DTextLabel("Text",0x00FF01,00.00,00.00,00.00,40.0,0);


    Attach3DTextLabelToVehicle( 3dtext, CopCar[i], 0.0, 0.0, 2.0);
    }
    return 1;
    }


    öhm

  • for(new i = 0; i < 18; i++)
    {
    new Text3D:3dtext = Create3DTextLabel("Text",0x00FF01,00.00,00.00,00.00,40.0,0);


    Attach3DTextLabelToVehicle( 3dtext, CopCar[i], 0.0, 0.0, 2.0);
    }



    das musst du löschen



    Das funktioniert aber trotzdem nicht, geht nur mit CreateVehicle.. also musst dir was anderes überlegen


    Einmal editiert, zuletzt von KING AMOK ()