Problem beim Spawn (schnelle hilfe benötigt!)

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
  • Huhu, bekomme immer den "CJ" skin, und kann auch nicht zwischen den anderen Skins hin und her schalten..
    Kanns sich einer erklären wieso?


    #include <a_samp>


    #define COLOR_ORANGE 0xFF8000FF
    #pragma tabsize 0





    // 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(" Parkour - Mirrors Edge Style by Deathangel © 2009 ");
    print("----------------------------------\n");
    }


    #endif


    public OnGameModeInit()
    {
    ///txtdraw
    ///////


    UsePlayerPedAnims();
    // Don't use these lines if it's a filterscript
    SetGameModeText("Parkour v0.1");
    AddPlayerClass(170, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(184, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(188, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(19, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(21, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(250, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(28, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(121, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(7, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid, 2032.2887,1544.8514,10.8203);
    SetPlayerCameraPos(playerid, 2037.3260,1544.8792,10.8203);
    SetPlayerCameraLookAt(playerid, 2032.2887,1544.8514,10.8203);
    SetPlayerFacingAngle(playerid, 270.0);
    }


    public OnPlayerRequestSpawn(playerid)
    {
    SetPlayerPos(playerid, 2032.2887,1544.8514,10.8203);
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    SendClientMessage(playerid, 0xFF8000FF,"Wilkommen auf dem Server.");
    SendClientMessage(playerid, 0xFF8000FF,"Dies ist ein Server der Einschließlich um den Parkour handelt.");
    SendClientMessage(playerid, 0xFF8000FF,"Wenn du nicht wissen solltest was Parkour ist, oder was man hier macht,");
    SendClientMessage(playerid, 0xFF8000FF,"tippe /parkourhelp.");
    SendClientMessage(playerid, 0xFF8000FF,"~~~~~~~~~~~~~~~~~~~~");
    SendClientMessage(playerid, 0xFF8000FF,"Du musst dich nicht registrieren, dient jedoch zum speichern der Punkte & Erweiterungen im Shop");
    SendClientMessage(playerid, 0xFF8000FF,"Tippe /register [passwort] um einen Account anzulegen");
    SendClientMessage(playerid, 0xFF8000FF,"Tippe /login [passwort] um dich in einen bereits bestehenden Account einzuloggen.");
    new pName[MAX_PLAYER_NAME];
    new string[48];
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "%s hat den Server Betreten.", pName);
    SendClientMessageToAll(0xAAAAAAAA, string);
    return 1;
    }


    public OnPlayerDisconnect(playerid, reason)
    {
    new pName[MAX_PLAYER_NAME];
    new string[56];
    GetPlayerName(playerid, pName, sizeof(pName));


    switch(reason)
    {
    case 0: format(string, sizeof(string), "%s hat den Server verlassen. (timeout)", pName);
    case 1: format(string, sizeof(string), "%s hat den Server verlassen. (leave)", pName);
    case 2: format(string, sizeof(string), "%s hat den Server verlassen. (kick/ban)", pName);
    }


    SendClientMessageToAll(0xAAAAAAAA, string);
    return 1;


    }


    public OnPlayerSpawn(playerid)
    {
    SetPlayerPos(playerid, 1925.4318,-1414.5797,13.5703);
    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("/help", cmdtext, true, 10) == 0)
    {
    SendClientMessage(playerid, 0xFF0000FF,"[________[Help]________]");
    SendClientMessage(playerid, 0xFF8000FF,"/commands");
    SendClientMessage(playerid, 0xFF8000FF,"/credits");
    SendClientMessage(playerid, 0xFF8000FF,"/parkourhelp");
    }
    if (strcmp("/commands", cmdtext, true, 10) == 0)
    {
    SendClientMessage(playerid, 0xFF0000FF,"[________[Commands]________]");
    SendClientMessage(playerid, 0xFF8000FF,"Leer");
    SendClientMessage(playerid, 0xFF8000FF,"Leer");
    } if (strcmp("/credits", cmdtext, true, 10) == 0)
    {
    SendClientMessage(playerid, 0xFF0000FF,"[________[Credits]________]");
    SendClientMessage(playerid, 0xFF8000FF,"Leer");
    SendClientMessage(playerid, 0xFF8000FF,"Leer");
    }
    if (strcmp("/parkourhelp", cmdtext, true, 10) == 0)
    {
    SendClientMessage(playerid, 0xFF0000FF,"[________[Parkourhelp]________]");
    SendClientMessage(playerid, 0xFF8000FF,"Parkour ist eine Akrobatische Art der schnellen Fortbewegung.");
    SendClientMessage(playerid, 0xFF8000FF,"Es wird über Zäune und Dächer gesprungen und meist ein Akrobatischer");
    SendClientMessage(playerid, 0xFF8000FF,"Sprung oder Abrolle hinzugefügt.");
    }
    return 1;
    }



    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;
    }




    Bitte um Hilfe, (btw an anderen Filterscripts oder so kann es nicht liegen hab es nur mal mit dem Gamemode getestet und da klappt es nicht auch mti den beiliegenden fs`s klappt es nicht!?)

  • unter OnGameModeINit
    for(new i = 0; i < 299; i++)
    {
    if(IsValidSkin(i))
    {
    AddPlayerClass(i,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
    }
    }


    und Das OnPlayerRequestCLass einfach mit dem ersetzen.
    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
    SetPlayerFacingAngle(playerid, 180.0);
    SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
    SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
    return 1;
    }


    Powered by Windows 7


    Die HDD stimmt nich , hab 3 Festplatten drin.

  • IRgendwas muss definiert werden, des wäre?


    C:\DOKUME~1\ADMINI~1\Desktop\PARKOU~3\PARKOU~1\GAMEMO~1\PARKOU~1.PWN(46) : error 017: undefined symbol "IsValidSkin"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.

    Einmal editiert, zuletzt von Todesengel ()

  • C:\DOKUME~1\ADMINI~1\Desktop\PARKOU~3\PARKOU~1\GAMEMO~1\PARKOU~1.PWN(46) : error 012: invalid function call, not a valid address
    C:\DOKUME~1\ADMINI~1\Desktop\PARKOU~3\PARKOU~1\GAMEMO~1\PARKOU~1.PWN(46) : warning 215: expression has no effect
    C:\DOKUME~1\ADMINI~1\Desktop\PARKOU~3\PARKOU~1\GAMEMO~1\PARKOU~1.PWN(46) : error 001: expected token: ";", but found ")"
    C:\DOKUME~1\ADMINI~1\Desktop\PARKOU~3\PARKOU~1\GAMEMO~1\PARKOU~1.PWN(46) : error 029: invalid expression, assumed zero
    C:\DOKUME~1\ADMINI~1\Desktop\PARKOU~3\PARKOU~1\GAMEMO~1\PARKOU~1.PWN(46) : 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.



    #include <a_samp>


    #define COLOR_ORANGE 0xFF8000FF
    #pragma tabsize 0
    new IsValidSkin;





    // 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(" Parkour - Mirrors Edge Style by Deathagnel © 2009 ");
    print("----------------------------------\n");
    }


    #endif


    public OnGameModeInit()
    {
    ///txtdraw
    ///////
    for(new i = 0; i < 299; i++)
    {
    if(IsValidSkin(i))
    {
    AddPlayerClass(i,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
    }
    }


    UsePlayerPedAnims();
    // Don't use these lines if it's a filterscript
    SetGameModeText("Parkour v0.1");
    AddPlayerClass(170, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(184, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(188, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(19, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(21, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(250, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(28, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(121, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(7, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
    SetPlayerFacingAngle(playerid, 180.0);
    SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
    SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
    return 1;
    }


    public OnPlayerRequestSpawn(playerid)
    {
    SetPlayerPos(playerid, 2032.2887,1544.8514,10.8203);
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    SendClientMessage(playerid, 0xFF8000FF,"Wilkommen auf dem Server.");
    SendClientMessage(playerid, 0xFF8000FF,"Dies ist ein Server der Einschließlich um den Parkour handelt.");
    SendClientMessage(playerid, 0xFF8000FF,"Wenn du nicht wissen solltest was Parkour ist, oder was man hier macht,");
    SendClientMessage(playerid, 0xFF8000FF,"tippe /parkourhelp.");
    SendClientMessage(playerid, 0xFF8000FF,"~~~~~~~~~~~~~~~~~~~~");
    SendClientMessage(playerid, 0xFF8000FF,"Du musst dich nicht registrieren, dient jedoch zum speichern der Punkte & Erweiterungen im Shop");
    SendClientMessage(playerid, 0xFF8000FF,"Tippe /register [passwort] um einen Account anzulegen");
    SendClientMessage(playerid, 0xFF8000FF,"Tippe /login [passwort] um dich in einen bereits bestehenden Account einzuloggen.");
    new pName[MAX_PLAYER_NAME];
    new string[48];
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "%s hat den Server Betreten.", pName);
    SendClientMessageToAll(0xAAAAAAAA, string);
    return 1;
    }


    public OnPlayerDisconnect(playerid, reason)
    {
    new pName[MAX_PLAYER_NAME];
    new string[56];
    GetPlayerName(playerid, pName, sizeof(pName));


    switch(reason)
    {
    case 0: format(string, sizeof(string), "%s hat den Server verlassen. (timeout)", pName);
    case 1: format(string, sizeof(string), "%s hat den Server verlassen. (leave)", pName);
    case 2: format(string, sizeof(string), "%s hat den Server verlassen. (kick/ban)", pName);
    }


    SendClientMessageToAll(0xAAAAAAAA, string);
    return 1;


    }


    public OnPlayerSpawn(playerid)
    {
    SetPlayerPos(playerid, 1925.4318,-1414.5797,13.5703);
    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("/help", cmdtext, true, 10) == 0)
    {
    SendClientMessage(playerid, 0xFF0000FF,"[________[Help]________]");
    SendClientMessage(playerid, 0xFF8000FF,"/commands");
    SendClientMessage(playerid, 0xFF8000FF,"/credits");
    SendClientMessage(playerid, 0xFF8000FF,"/parkourhelp");
    }
    if (strcmp("/commands", cmdtext, true, 10) == 0)
    {
    SendClientMessage(playerid, 0xFF0000FF,"[________[Commands]________]");
    SendClientMessage(playerid, 0xFF8000FF,"Leer");
    SendClientMessage(playerid, 0xFF8000FF,"Leer");
    } if (strcmp("/credits", cmdtext, true, 10) == 0)
    {
    SendClientMessage(playerid, 0xFF0000FF,"[________[Credits]________]");
    SendClientMessage(playerid, 0xFF8000FF,"Leer");
    SendClientMessage(playerid, 0xFF8000FF,"Leer");
    }
    if (strcmp("/parkourhelp", cmdtext, true, 10) == 0)
    {
    SendClientMessage(playerid, 0xFF0000FF,"[________[Parkourhelp]________]");
    SendClientMessage(playerid, 0xFF8000FF,"Parkour ist eine Akrobatische Art der schnellen Fortbewegung.");
    SendClientMessage(playerid, 0xFF8000FF,"Es wird über Zäune und Dächer gesprungen und meist ein Akrobatischer");
    SendClientMessage(playerid, 0xFF8000FF,"Sprung oder Abrolle hinzugefügt.");
    }
    return 1;
    }



    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;
    }


  • Ganz unten ins Script
    IsValidSkin(skinid)
    {
    #define MAX_BAD_SKINS 22
    new badSkins[MAX_BAD_SKINS] =
    { 3, 4, 5, 6, 8, 42, 65, 74, 86, 119, 149, 208, 268, 273, 289 };
    if (skinid < 0 || skinid > 299) return false;
    for (new i = 0; i < MAX_BAD_SKINS; i++) { if (skinid == badSkins[i]) return false; }
    #undef MAX_BAD_SKINS
    return 1;
    }


    Powered by Windows 7


    Die HDD stimmt nich , hab 3 Festplatten drin.

  • Ich danke euch soweit schonmal, ich habe es jedoch bereits hinbekommen, ich habe einfach mal eine neue Server.exe erstellt also Dedicated Server und dort alles eingefügt.. Lag wohl an einer Fehlerhaften Datei.


    Wie jedoch mache ich für jeden Spieler in der Skinauswahl:
    -Eine Eigene Animation
    -Ein Gametexttoplayer "name des skins"


    ? Sollte sich beim wechseln ändern x)...


    wenn alles klappt hat sich das Thema erledigt