Beiträge von EliteBread

    Also paar sind raus aber Hier sind noch paar ERRORS


    C:\Users\FloCrow\Desktop\Spiele\SCRIPT\gamemodes\GBR.pwn(314) : warning 206: redundant test: constant expression is non-zero
    C:\Users\FloCrow\Desktop\Spiele\SCRIPT\gamemodes\GBR.pwn(316) : error 029: invalid expression, assumed zero
    C:\Users\FloCrow\Desktop\Spiele\SCRIPT\gamemodes\GBR.pwn(316) : warning 215: expression has no effect
    C:\Users\FloCrow\Desktop\Spiele\SCRIPT\gamemodes\GBR.pwn(316) : error 001: expected token: ";", but found "]"
    C:\Users\FloCrow\Desktop\Spiele\SCRIPT\gamemodes\GBR.pwn(316) : error 029: invalid expression, assumed zero
    C:\Users\FloCrow\Desktop\Spiele\SCRIPT\gamemodes\GBR.pwn(316) : fatal error 107: too many error messages on one line



    314
    if(PlayerToPoint(25.0, playerid,3025,-1336.8866,13.3352,235))


    316
    if(PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0)


    was ist da los xD

    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if(strcmp(cmdtext,"/mv",true) == 0)
    {
    if(PlayerToPoint(25.0, playerid,3025,-1336.8866,13.3352,235))
    {
    if(PlayerInfo PlayerInfo[playerid][pMember] == 0||PlayerInfo[playerid][pLeader] == 0))
    {
    SetTimer("GateClose",3000 , 0);
    GetPlayerName(playerid, sendername, sizeof(sendername));
    MoveObject(LCNTor,1270.9865722656, -1337.7030029297, 5.112417221069, 2.0);
    SendClientMessage(playerid, COLOR_GRAD1,"** Du hast das Tor geöffnet, es schließt sich automatisch wieder!");
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "** Du bist kein Beamter!");
    }
    }
    {


    if(strcmp(cmdtext, "/motor",true) == 0)
    {
    if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return 1;
    new engine,lights,alarm,doors,bonnet,boot,objective;
    new vid = GetPlayerVehicleID(playerid);
    GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
    if(vid != INVALID_VEHICLE_ID)
    {
    if(engine == VEHICLE_PARAMS_ON)
    {
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~W~Motor ~r~aus!", 2000, 5);
    }
    else
    {
    SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~W~Motor ~g~an!", 2000, 5);
    }
    }
    return 1;
    }
    return 1;
    }



    egen was ist im /mv falsch



    C:\Users\FloCrow\Desktop\Spiele\SCRIPT\gamemodes\GBR.pwn(316) : error 029: invalid expression, assumed zero
    C:\Users\FloCrow\Desktop\Spiele\SCRIPT\gamemodes\GBR.pwn(316) : warning 215: expression has no effect
    C:\Users\FloCrow\Desktop\Spiele\SCRIPT\gamemodes\GBR.pwn(316) : error 001: expected token: ";", but found "]"
    C:\Users\FloCrow\Desktop\Spiele\SCRIPT\gamemodes\GBR.pwn(316) : error 029: invalid expression, assumed zero
    C:\Users\FloCrow\Desktop\Spiele\SCRIPT\gamemodes\GBR.pwn(316) : 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.

    Habe porblem mit 5 errors kuckt lieber selbst
    Erstes
    if(PlayerToPoint(25.0, playerid,3025,-1336.8866,13.3352,235))
    Error
     C:\Users\FloCrow\Desktop\Spiele\SCRIPT\gamemodes\GBR.pwn(314) : warning 206: redundant test: constant expression is non-zero


    Zweites
    if(PlayerInfo[playerid][pMember] == 10||PlayerInfo[playerid][pLeader] == 10||PlayerInfo[playerid][pMember] == 0||PlayerInfo[playerid][pLeader] == 0)
    Errors
     C:\Users\FloCrow\Desktop\Spiele\SCRIPT\gamemodes\GBR.pwn(316) : error 029: invalid expression, assumed zero
    C:\Users\FloCrow\Desktop\Spiele\SCRIPT\gamemodes\GBR.pwn(316) : warning 215: expression has no effect
    C:\Users\FloCrow\Desktop\Spiele\SCRIPT\gamemodes\GBR.pwn(316) : error 001: expected token: ";", but found "]"
    C:\Users\FloCrow\Desktop\Spiele\SCRIPT\gamemodes\GBR.pwn(316) : error 029: invalid expression, assumed zero
    C:\Users\FloCrow\Desktop\Spiele\SCRIPT\gamemodes\GBR.pwn(316) : fatal error 107: too many error messages on one line

    new Text:RealClock,Timer;
    new Spieler[MAX_PLAYERS][spieler_daten];
    //--------------Cars--------------
    new noobcar[6];




    //Define
    #define DIALOG_LOGIN 3
    #define DIALOG_REG 4
    #define dini_FloatSet
    #define dini_IntSet



    enum spieler_daten
    {
    wanted,
    skin,
    Float:lastx,Float:lasty,Float:lastz,
    eingeloggt
    }

    Habe da ein Probelm


    Errors
    C:\Users\FloCrow\Desktop\Spiele\SCRIPT\gamemodes\GBR.pwn(16) : error 017: undefined symbol "spieler_daten"
    C:\Users\FloCrow\Desktop\Spiele\SCRIPT\gamemodes\GBR.pwn(16) : error 009: invalid array size (negative, zero or out of bounds)


    2Errors



    ZEILE


    new Spieler[MAX_PLAYERS][spieler_daten];

    wie kann ich das newbie car ur bis level 3befahr bar mache



    public IsANewbie(carid)
    {
    if(carid == noobcar[0] || carid == noobcar[1] || carid == noobcar[2] || carid == noobcar[3] || carid == noobcar[4] || carid == noobcar[5])
    {
    return 1;
    }
    return 0;
    }

    Habe das include ocmd in pawno include ordner und in den haupt include order getahen abe wen ic im script compile steht da (5) : fatal error 100: cannot read from file: "ocmd"

    #include <a_samp>
    #include <dini>


    new Text:RealClock,Timer;


    forward UpdateClock();
    //------forward Cars----------
    forward IsANewbie();
    //--------------Cars--------------
    new noobcar[6]




    //Define
    #define DialogRegister 1
    #define DialogLogin 2




    //---------Colors--------
    #define COLOR_LOGIN 0x008400FF
    #define COLOR_LOGINFAIL 0xC00023FF
    #define COLOR_RED 0xFF0019FF
    //------RechteColors------ SpawnPlayer(playerid);
    #define COLOR_CLANMEMBER 0xB400FFFF
    #define COLOR_MODERATOR 0x007BFFFF
    #define COLOR_ADMINISTRATOR 0x00E200FF
    #define COLOR_SUPERADMIN 0xFFFF00FF
    #define COLOR_SERVERMANAGER 0xFF8200FF
    #define COLOR_SERVEROWNER 0xFF0000FF
    #define COLOR_LEVEL1 0x00FFFFFF




    [color=#ff0000]main();[/color]
    {
    print("\n----------------------------------");
    print("German TEST Server");
    print("----------------------------------\n");
    }


    public OnGameModeInit()
    {


    RealClock = TextDrawCreate(547.000000,22.000000," ");
    TextDrawAlignment(RealClock,0);
    TextDrawBackgroundColor(RealClock,0x000000ff);
    TextDrawFont(RealClock,3);
    TextDrawLetterSize(RealClock,0.599999,2.299999);
    TextDrawColor(RealClock,0xffffffff);
    TextDrawSetOutline(RealClock,1);
    TextDrawSetProportional(RealClock,1);
    TextDrawSetShadow(RealClock,10);
    Timer = SetTimer("UpdateClock",300,1);



    DisableInteriorEnterExits();

    SetGameModeText("Selfmade Script");
    AddPlayerClass(137,1727.9397,-1634.2394,20.2160,5.4384,0,0,0,0,0,0);




    //------------------Cars------------
    //Noobcars
    noobcar[0] = AddStaticVehicleEx(462,1703.4419,-1624.1383,13.1476,359.1008,1,82, 1800); // Spawncar 1
    noobcar[1] = AddStaticVehicleEx(462,1704.9547,-1624.1165,13.1464,359.0744,1,2, 1800); // Spawncar 2
    noobcar[2] = AddStaticVehicleEx(462,1706.5665,-1624.1337,13.1459,358.9807,1,68, 1800); // Spawncar 3
    noobcar[3] = AddStaticVehicleEx(462,1736.6414,-1624.1914,13.1466,359.3909,1,16, 1800); // Spawncar 4
    noobcar[4] = AddStaticVehicleEx(462,1735.0638,-1624.2140,13.1467,1.5293,1,100, 1800); // Spawncar 5
    noobcar[5] = AddStaticVehicleEx(462,1733.5803,-1624.1064,13.1461,1.0946,1,122, 1800); // Spawncar &

    return 1;
    }


    [color=#ff0000]public IsANewbie(carid)[/color]
    {
    if(carid == noobcar[0] || carid == noobcar[1] || carid == noobcar[2] || carid == noobcar[3] || carid == noobcar[4] || carid == noobcar[5])
    {
    return 1;
    }
    return 0;
    }


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


    ich weiß nicht was der fehler ist


    C:\Users\FloCrow\Desktop\Spiele\SCRIPT\gamemodes\GBR.pwn(37) : error 001: expected token: ";", but found "-identifier-"
    C:\Users\FloCrow\Desktop\Spiele\SCRIPT\gamemodes\GBR.pwn(38) : error 055: start of function body without function header
    C:\Users\FloCrow\Desktop\Spiele\SCRIPT\gamemodes\GBR.pwn(79) : error 025: function heading differs from prototype
    C:\Users\FloCrow\Desktop\Spiele\SCRIPT\gamemodes\GBR.pwn(195) : warning 209: function "OnPlayerCommandText" should return a value
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    3 Errors.


    Wo Color steht wollte ich die feler makiren

    Ahh ok danke wie kan ich das macen das beim ersten mal Login geburstag geschlecht abgefragt wird machen und das under scriptfiels Accounts gespeichert wird