Beiträge von TheGrn

    C:\Program Files\Rockstar Games\GTA San Andreas\samp03\pawno\Untitled.pwn(57) : error 055: start of function body without function header
    C:\Program Files\Rockstar Games\GTA San Andreas\samp03\pawno\Untitled.pwn(59) : error 010: invalid function or declaration
    C:\Program Files\Rockstar Games\GTA San Andreas\samp03\pawno\Untitled.pwn(61) : error 010: invalid function or declaration
    C:\Program Files\Rockstar Games\GTA San Andreas\samp03\pawno\Untitled.pwn(65) : error 010: invalid function or declaration
    C:\Program Files\Rockstar Games\GTA San Andreas\samp03\pawno\Untitled.pwn(77) : error 054: unmatched closing brace ("}")
    C:\Program Files\Rockstar Games\GTA San Andreas\samp03\pawno\Untitled.pwn(78) : error 010: invalid function or declaration
    C:\Program Files\Rockstar Games\GTA San Andreas\samp03\pawno\Untitled.pwn(83) : error 076: syntax error in the expression, or invalid function call
    C:\Program Files\Rockstar Games\GTA San Andreas\samp03\pawno\Untitled.pwn(83) : error 029: invalid expression, assumed zero
    C:\Program Files\Rockstar Games\GTA San Andreas\samp03\pawno\Untitled.pwn(83) : warning 215: expression has no effect
    C:\Program Files\Rockstar Games\GTA San Andreas\samp03\pawno\Untitled.pwn(86) : error 055: start of function body without function header
    C:\Program Files\Rockstar Games\GTA San Andreas\samp03\pawno\Untitled.pwn(87) : error 021: symbol already defined: "formatx"
    C:\Program Files\Rockstar Games\GTA San Andreas\samp03\pawno\Untitled.pwn(88) : error 010: invalid function or declaration
    C:\Program Files\Rockstar Games\GTA San Andreas\samp03\pawno\Untitled.pwn(90) : error 010: invalid function or declaration
    C:\Program Files\Rockstar Games\GTA San Andreas\samp03\pawno\Untitled.pwn(92) : error 010: invalid function or declaration
    C:\Program Files\Rockstar Games\GTA San Andreas\samp03\pawno\Untitled.pwn(96) : error 021: symbol already defined: "format"
    C:\Program Files\Rockstar Games\GTA San Andreas\samp03\pawno\Untitled.pwn(98) : error 021: symbol already defined: "format"
    C:\Program Files\Rockstar Games\GTA San Andreas\samp03\pawno\Untitled.pwn(100) : error 021: symbol already defined: "format"
    C:\Program Files\Rockstar Games\GTA San Andreas\samp03\pawno\Untitled.pwn(102) : error 054: unmatched closing brace ("}")
    C:\Program Files\Rockstar Games\GTA San Andreas\samp03\pawno\Untitled.pwn(106) : error 054: unmatched closing brace ("}")
    C:\Program Files\Rockstar Games\GTA San Andreas\samp03\pawno\Untitled.pwn(107) : error 010: invalid function or declaration
    C:\Program Files\Rockstar Games\GTA San Andreas\samp03\pawno\Untitled.pwn(119) : error 017: undefined symbol "GivePLayerWeapon"
    C:\Program Files\Rockstar Games\GTA San Andreas\samp03\pawno\Untitled.pwn(126) : error 017: undefined symbol "name"
    C:\Program Files\Rockstar Games\GTA San Andreas\samp03\pawno\Untitled.pwn(126) : error 017: undefined symbol "name"
    C:\Program Files\Rockstar Games\GTA San Andreas\samp03\pawno\Untitled.pwn(126) : error 029: invalid expression, assumed zero
    C:\Program Files\Rockstar Games\GTA San Andreas\samp03\pawno\Untitled.pwn(126) : fatal error 107: too many error messages on one line


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



    24 Errors.


    Mein Script schaut so aus ...
    pls help ^^
    #include <a_samp>


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


    forward CheckForPoint();



    enum point_struc
    {
    Float:x,
    Float:y,
    Float:z,
    ist_da,
    }
    new punkte[max_points][point_struc];
    new schon_erstellt;
    new string[256];
    new name[MAX_PLAYER_NAME];


    public OnFilterScriptInit()
    {
    print("\n====================================");
    print(" Script By : DJ_Traxxi");
    print("====================================\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    main()
    {
    print("\n====================================");
    print(" Game mode By : DJ_Traxxi");
    print("====================================\n");
    }


    #endif


    public OnGameModeInit()
    {
    // Don't use these lines if it's a filterscript
    SetGameModeText("Scripter anfaenger");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);


    return 1;
    }
    {
    new formatx[30];
    if(INI_Open("punkte.cfg"))
    {
    for(new i = 0;i<max_points;i++)
    {
    format(formatx,sizeof formatx,"is_there_%d",i);
    punkte[i][ist_da] = INI_ReadInt(formatx);
    if(punkte[i][ist_da]) // if(punkte[i][ist_da] == 1)
    {
    format(formatx,sizeof formatx,"p_x_%d",i);
    punkte[i][x] = INI_ReadFloat(formatx);
    format(formatx,sizeof formatx,"p_y_%d",i);
    punkte[i][y] = INI_ReadFloat(formatx);
    format(formatx,sizeof formatx,"p_z_%d",i);
    punkte[i][z] = INI_ReadFloat(formatx);
    schon_erstellt++;
    }
    }
    INI_Close();
    }
    return 1;
    }


    public OnGameModeExit()
    {
    print/"GameMode Exited!");
    return 1;
    }
    {
    new formatx[30];
    if(INI_Open("punkte.cfg"))
    {
    for(new i = 0;i<max_points;i++)
    {
    if(punkte[i][ist_da]) // if(punkte[i][ist_da] == 1)
    {
    format(formatx,sizeof formatx,"p_x_%d",i);
    INI_WriteFloat(formatx,punkte[i][x]);
    format(formatx,sizeof formatx,"p_y_%d",i);
    INI_WriteFloat(formatx,punkte[i][y]);
    format(formatx,sizeof formatx,"p_z_%d",i);
    INI_WriteFloat(formatx,punkte[i][z]);
    format(formatx,sizeof formatx,"is_there_%d",i);
    INI_WriteInt(formatx,punkte[i][ist_da]);
    }
    }
    INI_Save();
    INI_Close();
    }
    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)
    {
    GivePLayerWeapon(playerid, 31, 500);
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    GivePlayerMoney(playerid, 500000);
    GetPlayerName(playerid, name, sizeof(name));
    format(string, 256, sizeof(string)"%s Besucht uns !", name);
    return 1;
    }


    public OnPlayerDisconnect(playerid, reason)
    {
    new string[256];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    switch(reason)
    {
    case 0: format(string, sizeof(string), "%s Hat den Server verlassen grund : Timeout", name);
    case 1: format(string, sizeof(string), "%s Hat den Server verlassen grund : Ausgeloggt", name);
    case 2: format(string, sizeof(string), "%s Hat den Server verlassen grund : Gekickt/Bannt", name);
    }
    SendClientMessageToAll(0x00FF00FF, string);
    return 1;
    }


    public OnPlayerSpawn(playerid)
    {
    return 1;
    }


    public OnPlayerDeath(playerid, killerid, reason)
    {
    if (killerid == INVALID_PLAYER_ID)
    {
    SendClientMessageToAll(0x00FF00FF, "%s hat Selbstmord Beganngen.");
    } else
    {
    SendClientMessageToAll(0x00FF00FF, "%s wurde von einen AuftragsKiller ermordet.");
    }
    return 1;
    }


    public OnVehicleSpawn(vehicleid)
    {
    if(vehicleid == 503)
    {
    AddVehicleComponent(vehicleid, 1010);
    }
    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(cmdtext, "/neu", true) == 0)
    {
    new Float:gx,
    Float:gy,
    Float:gz;
    GetPlayerPos(playerid,gx,gy,gz);
    punkte[schon_erstellt][x] = (gx);
    punkte[schon_erstellt][y] = (gy);
    punkte[schon_erstellt][z] = (gz);
    punkte[schon_erstellt][ist_da] = (1);
    schon_erstellt++;
    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 CheckForPoint()
    {
    for(new i = 0;i<MAX_PLAYERS;i++)
    {
    if(IsPlayerConnected(i) && !IsPlayerNPC(i))
    {
    for(new j = 0;j<max_points;j++)
    {
    if(punkte[j][ist_da])
    {
    if(IsPlayerInRangeOfPoint(i,3.0,punkte[j][x],punkte[j][y],punkte[j][z]))GameTextForPlayer(i,"Info Punkt blubb",2000,3);
    }
    }
    }
    }
    return 1;
    }