Error beim erstellen einer AMX Datei

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
  • Wenn ich eine AMX datei mit pawno erstellen möchte kommen folgende Errors:


    C:\Dokumente und Einstellungen\Addo\Eigene Dateien\Downloads\Guckimucki\max1.pwn(44) : error 001: expected token: ",", but found ";"
    C:\Dokumente und Einstellungen\Addo\Eigene Dateien\Downloads\Guckimucki\max1.pwn(45) : error 001: expected token: ",", but found ";"
    C:\Dokumente und Einstellungen\Addo\Eigene Dateien\Downloads\Guckimucki\max1.pwn(46) : error 001: expected token: ",", but found ";"
    C:\Dokumente und Einstellungen\Addo\Eigene Dateien\Downloads\Guckimucki\max1.pwn(47) : error 001: expected token: ",", but found ";"
    C:\Dokumente und Einstellungen\Addo\Eigene Dateien\Downloads\Guckimucki\max1.pwn(48) : error 001: expected token: ",", but found ";"
    C:\Dokumente und Einstellungen\Addo\Eigene Dateien\Downloads\Guckimucki\max1.pwn(49) : error 001: expected token: ",", but found ";"
    C:\Dokumente und Einstellungen\Addo\Eigene Dateien\Downloads\Guckimucki\max1.pwn(50) : error 001: expected token: ",", but found ";"
    C:\Dokumente und Einstellungen\Addo\Eigene Dateien\Downloads\Guckimucki\max1.pwn(51) : error 001: expected token: ",", but found ";"
    C:\Dokumente und Einstellungen\Addo\Eigene Dateien\Downloads\Guckimucki\max1.pwn(52) : error 001: expected token: ",", but found ";"
    C:\Dokumente und Einstellungen\Addo\Eigene Dateien\Downloads\Guckimucki\max1.pwn(53) : error 001: expected token: ",", but found ";"
    C:\Dokumente und Einstellungen\Addo\Eigene Dateien\Downloads\Guckimucki\max1.pwn(54) : error 001: expected token: ",", but found ";"
    C:\Dokumente und Einstellungen\Addo\Eigene Dateien\Downloads\Guckimucki\max1.pwn(55) : error 001: expected token: ",", but found ";"
    C:\Dokumente und Einstellungen\Addo\Eigene Dateien\Downloads\Guckimucki\max1.pwn(56) : error 001: expected token: ",", but found ";"
    C:\Dokumente und Einstellungen\Addo\Eigene Dateien\Downloads\Guckimucki\max1.pwn(57) : error 001: expected token: ",", but found ";"
    C:\Dokumente und Einstellungen\Addo\Eigene Dateien\Downloads\Guckimucki\max1.pwn(165) : error 017: undefined symbol "PlayerInfo"
    C:\Dokumente und Einstellungen\Addo\Eigene Dateien\Downloads\Guckimucki\max1.pwn(165) : warning 215: expression has no effect
    C:\Dokumente und Einstellungen\Addo\Eigene Dateien\Downloads\Guckimucki\max1.pwn(165) : error 001: expected token: ";", but found "]"
    C:\Dokumente und Einstellungen\Addo\Eigene Dateien\Downloads\Guckimucki\max1.pwn(165) : error 029: invalid expression, assumed zero
    C:\Dokumente und Einstellungen\Addo\Eigene Dateien\Downloads\Guckimucki\max1.pwn(165) : fatal error 107: too many error messages on one line


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



    18 Errors.



    Was kann ich tun?

  • new YakuzaTor;
    forward YakuzaClose();


    #include <a_samp>


    // This is a comment
    // uncomment the line below if you want to write a filterscript
    //#define FILTERSCRIPT


    #if defined FILTERSCRIPT


    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    main()
    {
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
    }


    #endif


    public OnGameModeInit()
    {
    // Don't use these lines if it's a filterscript
    SetGameModeText("Blank Script");


    YakuzaTor = CreateObject(971,1934.19,1090.05,13.2037,0.0,0.0,90.0);
    AddPlayerClass(0,1580.8130,-1634.9532,13.5606,269.2242,0,0,0,0,0,0); // polispawn
    AddPlayerClass(0,1233.4880,-1639.5457,13.5469,94.3143,0,0,0,0,0,0); // bikerspawn!
    AddStaticVehicle(429,2024.1528,1014.8367,10.5000,270.2691,1,2 ; // Jakuza1
    AddStaticVehicle(429,2023.7090,1001.2612,10.5000,269.9251,1,2 ; // Jakuza2
    AddStaticVehicle(429,1997.7546,989.6102,10.5000,269.2632,1,2 ; // Jakuza3
    AddStaticVehicle(429,1987.5311,968.7007,10.5000,272.3014,1,2 ; // Jakuza4
    AddStaticVehicle(429,1986.2269,971.3292,10.5000,269.0249,1,2 ; // Jakuza5
    AddStaticVehicle(429,1986.1831,973.8828,10.5000,267.9347,1,2 ; // Jakuza6
    AddStaticVehicle(429,1985.6804,985.3649,10.5040,268.3507,1,2 ; // Jakuza7
    AddStaticVehicle(429,1985.7332,982.3242,10.5000,267.7993,1,2 ; // Jakuza8
    AddStaticVehicle(429,1985.6396,981.2623,10.4996,271.8557,1,2 ; // Jakuza9
    AddStaticVehicle(429,2005.5675,1069.5830,10.5001,90.5105,1,2 ; // Jakuza10
    AddStaticVehicle(429,2001.4418,1074.6606,10.5049,0.2796,1,2 ;// Jakuza11
    AddStaticVehicle(429,1998.2086,1074.6462,10.5000,0.5374,1,2 ; // Jakuza12
    AddStaticVehicle(429,1994.9486,1074.7118,10.5000,359.9605,1,2 ; // Jakuza13
    AddStaticVehicle(429,1991.3037,1074.6332,10.5000,357.5706,1,2 ; // Jakuza14
    AddStaticVehicle(497,1552.0160,-1643.9583,28.5789,38.2807,0,1); // Poliheli
    AddStaticVehicle(523,1606.5216,-1603.7623,13.1074,91.9010,0,0); // polibike1
    AddStaticVehicle(523,1606.5815,-1605.0808,13.1075,86.9052,0,0); // polibike2
    AddStaticVehicle(523,1606.5040,-1606.4281,13.1063,87.7445,0,0); // polibike3
    AddStaticVehicle(523,1606.4155,-1607.6536,13.1051,86.7155,0,0); // polibike4
    AddStaticVehicle(523,1606.5756,-1608.9037,13.1077,87.3448,0,0); // polibike5
    AddStaticVehicle(523,1606.5776,-1610.2190,13.1076,87.6054,0,0); // polibike6
    AddStaticVehicle(528,1530.5002,-1644.3315,5.9346,179.9728,0,0); // poliSUV
    AddStaticVehicle(528,1534.7169,-1644.8046,5.9340,181.2056,0,0); // poliSUV2
    AddStaticVehicle(596,1595.6783,-1709.9070,5.6119,359.9178,0,1); // policarls1
    AddStaticVehicle(596,1591.6006,-1709.8604,5.6116,358.0559,0,1); // policarls2
    AddStaticVehicle(596,1587.4138,-1710.0967,5.6123,0.1677,0,1); // policarls3
    AddStaticVehicle(596,1583.6162,-1709.7155,5.6116,358.4423,0,1); // policarls4
    AddStaticVehicle(599,1578.4174,-1710.8763,6.0812,359.6413,0,1); // poliVAN1
    AddStaticVehicle(599,1574.6051,-1709.3054,6.0804,358.4392,0,1); // poliVAN2
    AddStaticVehicle(599,1570.4327,-1709.5809,6.0776,359.4158,0,1); // poliVAN3
    AddStaticVehicle(599,1558.9299,-1709.7593,6.0837,1.0588,0,1); // poliVAN4
    AddStaticVehicle(601,1539.0782,-1644.0913,5.6494,180.2653,1,1); // Politank
    AddStaticVehicle(427,1546.6855,-1684.2542,6.0198,89.1818,0,1); // polibum1
    AddStaticVehicle(427,1546.7134,-1680.1581,6.0227,90.0075,0,1); // polibum2
    AddStaticVehicle(427,1528.9801,-1688.3966,6.0221,271.7221,0,1); // polibum3
    AddStaticVehicle(427,1528.7920,-1684.4161,6.0236,270.7546,0,1); // polibum4
    AddStaticVehicle(521,1214.4479,-1664.8860,11.3668,269.1272,25,118); // biker1
    AddStaticVehicle(461,1214.4866,-1653.0681,11.3806,267.1448,75,1); // biker2
    AddStaticVehicle(461,1214.4159,-1653.7693,11.3875,262.9432,88,1); // biker3
    AddStaticVehicle(461,1214.4114,-1654.5253,11.3779,266.5162,37,1); // biker4
    AddStaticVehicle(461,1214.3862,-1652.3103,11.3830,267.8835,53,1); // biker5
    AddStaticVehicle(521,1214.4626,-1665.6422,11.3676,265.1151,87,118); // biker6
    AddStaticVehicle(521,1214.3732,-1666.4475,11.3685,264.8355,115,118); // biker7
    AddStaticVehicle(521,1214.5310,-1667.3855,11.3672,267.2684,36,0); // biker8
    AddStaticVehicle(581,1214.4077,-1660.4596,11.3923,272.0299,87,1); // biker9
    AddStaticVehicle(581,1214.4149,-1659.5656,11.3918,270.5617,36,1); // biker10
    AddStaticVehicle(581,1214.4397,-1658.6279,11.3945,270.2003,58,1); // biker11
    AddStaticVehicle(581,1214.4634,-1661.4491,11.3962,268.3011,72,1); // biker12
    AddStaticVehicle(487,1119.1393,-2037.0897,78.4020,90.5955,26,3); // President Heli
    AddStaticVehicle(409,1241.0981,-2029.2997,59.8025,0.2577,1,1); // President Limo1
    AddStaticVehicle(409,1240.9456,-2015.0684,59.7912,0.0369,1,1); // President Limo2
    AddStaticVehicle(451,1244.4850,-2010.6573,59.5736,179.8094,18,18); // President GT1
    AddStaticVehicle(451,1246.9668,-2010.7183,59.4995,181.7649,61,61); // President GT2
    AddStaticVehicle(451,1249.3792,-2010.5614,59.4303,183.3850,123,123); // President GT3
    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
    }


    public OnPlayerRequestSpawn(playerid)
    {
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    return 1;
    }


    public OnPlayerDisconnect(playerid, reason)
    {
    return 1;
    }


    public OnPlayerSpawn(playerid)
    {
    return 1;
    }


    public OnPlayerDeath(playerid, killerid, reason)
    {
    return 1;
    }


    public OnVehicleSpawn(vehicleid)
    {
    return 1;
    }


    public OnVehicleDeath(vehicleid, killerid)
    {
    return 1;
    }


    public OnPlayerText(playerid, text[])
    {
    return 1;
    }


    public OnPlayerPrivmsg(playerid, recieverid, text[])
    {
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
    if(strcmp(cmdtext,"/yakuzaopen",true) == 0)
    {
    if(PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid[pAdmin]== adminlvl)
    {
    MoveObject(YakuzaTor,1934.19,1098.85,13.2037,2.5);
    SetTimer("YakuzaClose",5000,0);
    }
    else SendClientMessage(playerid,0x00FF00FF," Du gehörst nicht zu der Yakuza!");
    return 1;
    }// Do something here
    return 1;
    }
    return 0;
    }


    public OnPlayerInfoChange(playerid)
    {
    return 1;
    }


    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
    return 1;
    }


    public OnPlayerExitVehicle(playerid, vehicleid)
    {
    return 1;
    }


    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    return 1;
    }


    public OnPlayerEnterCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerEnterRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnRconCommand(cmd[])
    {
    return 1;
    }


    public OnObjectMoved(objectid)
    {
    return 1;
    }


    public OnPlayerObjectMoved(playerid, objectid)
    {
    return 1;
    }


    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    return 1;
    }


    public OnPlayerSelectedMenuRow(playerid, row)
    {
    return 1;
    }


    public OnPlayerExitedMenu(playerid)
    {
    return 1;
    }


    public YakuzaClose()
    {
    MoveObject(YakuzaTor,1934.19,1090.05,13.2037,2.5);
    return 1;
    }


    ist noch ein sehr simpler script,desshalb wunder ich mich,warum da Errors auftreten...

  • public OnGameModeInit()
    {
    // Don't use these lines if it's a filterscript
    SetGameModeText("Blank Script");


    YakuzaTor = CreateObject(971,1934.19,1090.05,13.2037,0.0,0.0,90.0);
    AddPlayerClass(0,1580.8130,-1634.9532,13.5606,269.2242,0,0,0,0,0,0); // polispawn
    AddPlayerClass(0,1233.4880,-1639.5457,13.5469,94.3143,0,0,0,0,0,0); // bikerspawn!
    AddStaticVehicle(429,2024.1528,1014.8367,10.5000,270.2691,1,2); // Jakuza1
    AddStaticVehicle(429,2023.7090,1001.2612,10.5000,269.9251,1,2); // Jakuza2
    AddStaticVehicle(429,1997.7546,989.6102,10.5000,269.2632,1,2); // Jakuza3
    AddStaticVehicle(429,1987.5311,968.7007,10.5000,272.3014,1,2); // Jakuza4
    AddStaticVehicle(429,1986.2269,971.3292,10.5000,269.0249,1,2); // Jakuza5
    AddStaticVehicle(429,1986.1831,973.8828,10.5000,267.9347,1,2); // Jakuza6
    AddStaticVehicle(429,1985.6804,985.3649,10.5040,268.3507,1,2); // Jakuza7
    AddStaticVehicle(429,1985.7332,982.3242,10.5000,267.7993,1,2); // Jakuza8
    AddStaticVehicle(429,1985.6396,981.2623,10.4996,271.8557,1,2); // Jakuza9
    AddStaticVehicle(429,2005.5675,1069.5830,10.5001,90.5105,1,2); // Jakuza10
    AddStaticVehicle(429,2001.4418,1074.6606,10.5049,0.2796,1,2 ;// Jakuza11
    AddStaticVehicle(429,1998.2086,1074.6462,10.5000,0.5374,1,2 ; // Jakuza12
    AddStaticVehicle(429,1994.9486,1074.7118,10.5000,359.9605,1,2 ; // Jakuza13
    AddStaticVehicle(429,1991.3037,1074.6332,10.5000,357.5706,1,2 ; // Jakuza14
    AddStaticVehicle(497,1552.0160,-1643.9583,28.5789,38.2807,0,1); // Poliheli
    AddStaticVehicle(523,1606.5216,-1603.7623,13.1074,91.9010,0,0); // polibike1
    AddStaticVehicle(523,1606.5815,-1605.0808,13.1075,86.9052,0,0); // polibike2
    AddStaticVehicle(523,1606.5040,-1606.4281,13.1063,87.7445,0,0); // polibike3
    AddStaticVehicle(523,1606.4155,-1607.6536,13.1051,86.7155,0,0); // polibike4
    AddStaticVehicle(523,1606.5756,-1608.9037,13.1077,87.3448,0,0); // polibike5
    AddStaticVehicle(523,1606.5776,-1610.2190,13.1076,87.6054,0,0); // polibike6
    AddStaticVehicle(528,1530.5002,-1644.3315,5.9346,179.9728,0,0); // poliSUV
    AddStaticVehicle(528,1534.7169,-1644.8046,5.9340,181.2056,0,0); // poliSUV2
    AddStaticVehicle(596,1595.6783,-1709.9070,5.6119,359.9178,0,1); // policarls1
    AddStaticVehicle(596,1591.6006,-1709.8604,5.6116,358.0559,0,1); // policarls2
    AddStaticVehicle(596,1587.4138,-1710.0967,5.6123,0.1677,0,1); // policarls3
    AddStaticVehicle(596,1583.6162,-1709.7155,5.6116,358.4423,0,1); // policarls4
    AddStaticVehicle(599,1578.4174,-1710.8763,6.0812,359.6413,0,1); // poliVAN1
    AddStaticVehicle(599,1574.6051,-1709.3054,6.0804,358.4392,0,1); // poliVAN2
    AddStaticVehicle(599,1570.4327,-1709.5809,6.0776,359.4158,0,1); // poliVAN3
    AddStaticVehicle(599,1558.9299,-1709.7593,6.0837,1.0588,0,1); // poliVAN4
    AddStaticVehicle(601,1539.0782,-1644.0913,5.6494,180.2653,1,1); // Politank
    AddStaticVehicle(427,1546.6855,-1684.2542,6.0198,89.1818,0,1); // polibum1
    AddStaticVehicle(427,1546.7134,-1680.1581,6.0227,90.0075,0,1); // polibum2
    AddStaticVehicle(427,1528.9801,-1688.3966,6.0221,271.7221,0,1); // polibum3
    AddStaticVehicle(427,1528.7920,-1684.4161,6.0236,270.7546,0,1); // polibum4
    AddStaticVehicle(521,1214.4479,-1664.8860,11.3668,269.1272,25,118); // biker1
    AddStaticVehicle(461,1214.4866,-1653.0681,11.3806,267.1448,75,1); // biker2
    AddStaticVehicle(461,1214.4159,-1653.7693,11.3875,262.9432,88,1); // biker3
    AddStaticVehicle(461,1214.4114,-1654.5253,11.3779,266.5162,37,1); // biker4
    AddStaticVehicle(461,1214.3862,-1652.3103,11.3830,267.8835,53,1); // biker5
    AddStaticVehicle(521,1214.4626,-1665.6422,11.3676,265.1151,87,118); // biker6
    AddStaticVehicle(521,1214.3732,-1666.4475,11.3685,264.8355,115,118); // biker7
    AddStaticVehicle(521,1214.5310,-1667.3855,11.3672,267.2684,36,0); // biker8
    AddStaticVehicle(581,1214.4077,-1660.4596,11.3923,272.0299,87,1); // biker9
    AddStaticVehicle(581,1214.4149,-1659.5656,11.3918,270.5617,36,1); // biker10
    AddStaticVehicle(581,1214.4397,-1658.6279,11.3945,270.2003,58,1); // biker11
    AddStaticVehicle(581,1214.4634,-1661.4491,11.3962,268.3011,72,1); // biker12
    AddStaticVehicle(487,1119.1393,-2037.0897,78.4020,90.5955,26,3); // President Heli
    AddStaticVehicle(409,1241.0981,-2029.2997,59.8025,0.2577,1,1); // President Limo1
    AddStaticVehicle(409,1240.9456,-2015.0684,59.7912,0.0369,1,1); // President Limo2
    AddStaticVehicle(451,1244.4850,-2010.6573,59.5736,179.8094,18,18); // President GT1
    AddStaticVehicle(451,1246.9668,-2010.7183,59.4995,181.7649,61,61); // President GT2
    AddStaticVehicle(451,1249.3792,-2010.5614,59.4303,183.3850,123,123); // President GT3
    return 1;
    }


    since 2009.

  • C:\Dokumente und Einstellungen\Addo\Eigene Dateien\Downloads\Guckimucki\max1.pwn(165) : error 017: undefined symbol "PlayerInfo"
    C:\Dokumente und Einstellungen\Addo\Eigene Dateien\Downloads\Guckimucki\max1.pwn(165) : warning 215: expression has no effect
    C:\Dokumente und Einstellungen\Addo\Eigene Dateien\Downloads\Guckimucki\max1.pwn(165) : error 001: expected token: ";", but found "]"
    C:\Dokumente und Einstellungen\Addo\Eigene Dateien\Downloads\Guckimucki\max1.pwn(165) : error 029: invalid expression, assumed zero
    C:\Dokumente und Einstellungen\Addo\Eigene Dateien\Downloads\Guckimucki\max1.pwn(165) : fatal error 107: too many error messages on one line


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



    4 Errors.



    auf 4 reduziert :thumbup:

  • Habe mich verlesen sorry,


    public OnGameModeInit()
    {
    // Don't use these lines if it's a filterscript
    SetGameModeText("Blank Script");


    YakuzaTor = CreateObject(971,1934.19,1090.05,13.2037,0.0,0.0,90.0);
    AddPlayerClass(0,1580.8130,-1634.9532,13.5606,269.2242,0,0,0,0,0,0); // polispawn
    AddPlayerClass(0,1233.4880,-1639.5457,13.5469,94.3143,0,0,0,0,0,0); // bikerspawn!
    AddStaticVehicle(429,2024.1528,1014.8367,10.5000,270.2691,1,2) ; // Jakuza1
    AddStaticVehicle(429,2023.7090,1001.2612,10.5000,269.9251,1,2) ; // Jakuza2
    AddStaticVehicle(429,1997.7546,989.6102,10.5000,269.2632,1,2) ; // Jakuza3
    AddStaticVehicle(429,1987.5311,968.7007,10.5000,272.3014,1,2) ; // Jakuza4
    AddStaticVehicle(429,1986.2269,971.3292,10.5000,269.0249,1,2) ; // Jakuza5
    AddStaticVehicle(429,1986.1831,973.8828,10.5000,267.9347,1,2) ; // Jakuza6
    AddStaticVehicle(429,1985.6804,985.3649,10.5040,268.3507,1,2) ; // Jakuza7
    AddStaticVehicle(429,1985.7332,982.3242,10.5000,267.7993,1,2) ; // Jakuza8
    AddStaticVehicle(429,1985.6396,981.2623,10.4996,271.8557,1,2) ; // Jakuza9
    AddStaticVehicle(429,2005.5675,1069.5830,10.5001,90.5105,1,2) ; // Jakuza10
    AddStaticVehicle(429,2001.4418,1074.6606,10.5049,0.2796,1,2) ;// Jakuza11
    AddStaticVehicle(429,1998.2086,1074.6462,10.5000,0.5374,1,2) ; // Jakuza12
    AddStaticVehicle(429,1994.9486,1074.7118,10.5000,359.9605,1,2) ; // Jakuza13
    AddStaticVehicle(429,1991.3037,1074.6332,10.5000,357.5706,1,2) ; // Jakuza14
    AddStaticVehicle(497,1552.0160,-1643.9583,28.5789,38.2807,0,1); // Poliheli
    AddStaticVehicle(523,1606.5216,-1603.7623,13.1074,91.9010,0,0); // polibike1
    AddStaticVehicle(523,1606.5815,-1605.0808,13.1075,86.9052,0,0); // polibike2
    AddStaticVehicle(523,1606.5040,-1606.4281,13.1063,87.7445,0,0); // polibike3
    AddStaticVehicle(523,1606.4155,-1607.6536,13.1051,86.7155,0,0); // polibike4
    AddStaticVehicle(523,1606.5756,-1608.9037,13.1077,87.3448,0,0); // polibike5
    AddStaticVehicle(523,1606.5776,-1610.2190,13.1076,87.6054,0,0); // polibike6
    AddStaticVehicle(528,1530.5002,-1644.3315,5.9346,179.9728,0,0); // poliSUV
    AddStaticVehicle(528,1534.7169,-1644.8046,5.9340,181.2056,0,0); // poliSUV2
    AddStaticVehicle(596,1595.6783,-1709.9070,5.6119,359.9178,0,1); // policarls1
    AddStaticVehicle(596,1591.6006,-1709.8604,5.6116,358.0559,0,1); // policarls2
    AddStaticVehicle(596,1587.4138,-1710.0967,5.6123,0.1677,0,1); // policarls3
    AddStaticVehicle(596,1583.6162,-1709.7155,5.6116,358.4423,0,1); // policarls4
    AddStaticVehicle(599,1578.4174,-1710.8763,6.0812,359.6413,0,1); // poliVAN1
    AddStaticVehicle(599,1574.6051,-1709.3054,6.0804,358.4392,0,1); // poliVAN2
    AddStaticVehicle(599,1570.4327,-1709.5809,6.0776,359.4158,0,1); // poliVAN3
    AddStaticVehicle(599,1558.9299,-1709.7593,6.0837,1.0588,0,1); // poliVAN4
    AddStaticVehicle(601,1539.0782,-1644.0913,5.6494,180.2653,1,1); // Politank
    AddStaticVehicle(427,1546.6855,-1684.2542,6.0198,89.1818,0,1); // polibum1
    AddStaticVehicle(427,1546.7134,-1680.1581,6.0227,90.0075,0,1); // polibum2
    AddStaticVehicle(427,1528.9801,-1688.3966,6.0221,271.7221,0,1); // polibum3
    AddStaticVehicle(427,1528.7920,-1684.4161,6.0236,270.7546,0,1); // polibum4
    AddStaticVehicle(521,1214.4479,-1664.8860,11.3668,269.1272,25,118); // biker1
    AddStaticVehicle(461,1214.4866,-1653.0681,11.3806,267.1448,75,1); // biker2
    AddStaticVehicle(461,1214.4159,-1653.7693,11.3875,262.9432,88,1); // biker3
    AddStaticVehicle(461,1214.4114,-1654.5253,11.3779,266.5162,37,1); // biker4
    AddStaticVehicle(461,1214.3862,-1652.3103,11.3830,267.8835,53,1); // biker5
    AddStaticVehicle(521,1214.4626,-1665.6422,11.3676,265.1151,87,118); // biker6
    AddStaticVehicle(521,1214.3732,-1666.4475,11.3685,264.8355,115,118); // biker7
    AddStaticVehicle(521,1214.5310,-1667.3855,11.3672,267.2684,36,0); // biker8
    AddStaticVehicle(581,1214.4077,-1660.4596,11.3923,272.0299,87,1); // biker9
    AddStaticVehicle(581,1214.4149,-1659.5656,11.3918,270.5617,36,1); // biker10
    AddStaticVehicle(581,1214.4397,-1658.6279,11.3945,270.2003,58,1); // biker11
    AddStaticVehicle(581,1214.4634,-1661.4491,11.3962,268.3011,72,1); // biker12
    AddStaticVehicle(487,1119.1393,-2037.0897,78.4020,90.5955,26,3); // President Heli
    AddStaticVehicle(409,1241.0981,-2029.2997,59.8025,0.2577,1,1); // President Limo1
    AddStaticVehicle(409,1240.9456,-2015.0684,59.7912,0.0369,1,1); // President Limo2
    AddStaticVehicle(451,1244.4850,-2010.6573,59.5736,179.8094,18,18); // President GT1
    AddStaticVehicle(451,1246.9668,-2010.7183,59.4995,181.7649,61,61); // President GT2
    AddStaticVehicle(451,1249.3792,-2010.5614,59.4303,183.3850,123,123); // President GT3
    return 1;
    }


  • public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
    if(strcmp(cmdtext,"/yakuzaopen",true) == 0)
    {
    if(PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid[pAdmin]== adminlvl)
    {
    MoveObject(YakuzaTor,1934.19,1098.85,13.2037,2.5);
    SetTimer("YakuzaClose",5000,0);
    }
    else SendClientMessage(playerid,0x00FF00FF," Du gehörst nicht zu der Yakuza!");
    return 1;
    }// Do something here


    i-was ist das falsch :rolleyes: (Zeile 7)

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • Was will der mit einem Login / Register System ? Wen der nur die Teams braucht ?



    Hast du den schon irgendwelche Teams ?


    Also ich habe das mit gTeam gemacht, z.b für das Tor machste das einfach so..


    #define Groove 1
    #define Ballas 2
    #define Fahrlehrer 3
    #define Cops 4
    #define Medic 5
    #define Mechanic 6
    #define Army 8
    #define Hitmans 9
    #define LCN 10
    #define Groovemember 11
    #define Ballasmember 12
    #define Fahrlehrermember 13
    #define Copsmember 14
    #define Medicmember 15
    #define Mechanicmember 16
    #define Armymember 17
    #define Hitmansmember 18
    #define LCNmember 19
    #define Ms13Member 20
    #define Ms13 21


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
    if(strcmp(cmdtext,"/yakuzaopen",true) == 0)
    {
    if(gTeam[playerid] == Groovemember || gLeader[playerid] == Groove)
    {
    MoveObject(YakuzaTor,1934.19,1098.85,13.2037,2.5);
    SetTimer("YakuzaClose",5000,0);
    }
    else SendClientMessage(playerid,0x00FF00FF," Du gehörst nicht zu der Yakuza!");
    return 1;
    }



    Ist jetzt nur ein Beispiel, du musst die Teams definieren wie du möchtest.

  • Doch,Register System ist okay,ich bau das mal eben ein :P


    muss ich das unter filtescripts reinbauen?


    4 errors bleiben:


    C:\Dokumente und Einstellungen\Addo\Eigene Dateien\Downloads\Guckimucki\max1.pwn(165) : error 017: undefined symbol "PlayerInfo"
    C:\Dokumente und Einstellungen\Addo\Eigene Dateien\Downloads\Guckimucki\max1.pwn(165) : warning 215: expression has no effect
    C:\Dokumente und Einstellungen\Addo\Eigene Dateien\Downloads\Guckimucki\max1.pwn(165) : error 001: expected token: ";", but found "]"
    C:\Dokumente und Einstellungen\Addo\Eigene Dateien\Downloads\Guckimucki\max1.pwn(165) : error 029: invalid expression, assumed zero
    C:\Dokumente und Einstellungen\Addo\Eigene Dateien\Downloads\Guckimucki\max1.pwn(165) : fatal error 107: too many error messages on one line


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



    4 Errors.