Beiträge von chrissychief

    Hey Leute,
    ich hab mal wieder ein Problem ;(
    Ich möchte bei mir eine Skin/Team Auswahl scripten,doch iwie funktioniert das nicht.Ich habe die POsitionen zwar alle gespeichert und eingefügt,aber die Cam guckt immer in den HImmel.Einmal hat er auch auf die Erde geguckt,aber da war alles so "verpixelt"....
    Bitte helft mir :S



    SetPlayerPos(playerid,1,1121.2507,-2037.0111,78.2060,90.2179,0,0,0,0,0,0);
    SetPlayerFacingAngle(playerid,1121.2507);
    SetPlayerCameraPos(playerid,447,1149.1248,-2035.2428,79.5574,91.6455,75,2);
    SetPlayerCameraLookAt(playerid,1,1160.5262,-2037.1332,69.0078,92.4345,0,0,0,0,0,0);



    und ich hab da noch ne Frage auch wenn sie doof is : wie macht ihr alle immer diese "Ausschnitte " mit den Codes,weil so kann man alles besser erkennen ;)
    Ach noch was,wie erstellt man einen Schriftzug so das da drüber z.b USA etc steht



    MfG Chris :thumbup:

    //Includes
    #include <a_samp>
    #include <dini>


    //Dialoge


    #define REGISTER 1
    #define LOGIN 2
    #define BLAU 0x0000FFFF


    main()
    {
    print("\n----------------------------------");
    print(" TDM Script By Chris");
    print("----------------------------------\n");
    }




    public OnGameModeInit()
    {
    SetGameModeText("TDM By Chris");
    AddPlayerClass(0, 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, 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 OnPlayerConnect(playerid)
    {
    SendClientMessage(playerid,BLAU,"Herzlich Wilkommen auf TDM/RP Server.");
    ShowPlayerDialog(playerid,REGISTER,DIALOG_STYLE_INPUT,"Registrieren","Passwort wählen um ACC zu erstellen","Registrieren","Abbrechen");{
    }
    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 OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {

    return 1;
    }
    return 0;
    }


    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 OnPlayerRequestSpawn(playerid)
    {
    return 1;
    }


    public OnObjectMoved(objectid)
    {
    return 1;
    }


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


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


    public OnVehicleMod(playerid, vehicleid, componentid)
    {
    return 1;
    }


    public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
    {
    return 1;
    }


    public OnVehicleRespray(playerid, vehicleid, color1, color2)
    {
    return 1;
    }


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


    public OnPlayerExitedMenu(playerid)
    {
    return 1;
    }


    public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
    {
    return 1;
    }


    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
    return 1;
    }


    public OnRconLoginAttempt(ip[], password[], success)
    {
    return 1;
    }


    public OnPlayerUpdate(playerid)
    {
    return 1;
    }


    public OnPlayerStreamIn(playerid, forplayerid)
    {
    return 1;
    }


    public OnPlayerStreamOut(playerid, forplayerid)
    {
    return 1;
    }


    public OnVehicleStreamIn(vehicleid, forplayerid)
    {
    return 1;
    }


    public OnVehicleStreamOut(vehicleid, forplayerid)
    {
    return 1;
    }


    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    if(dialogid == REGISTER)
    {
    if(response == 0)
    {
    SendClientMessage(playerid,BLAU,"Du hast den Vorgang abgebrochen");
    Kick(playerid);
    return 1;
    }
    if(response == 1)
    {
    if(!strlen(inputtext))
    {
    SendClientMessage(playerid,BLAU,"Bitte gebe ein Passwort ein");
    ShowPlayerDialog(playerid,REGISTER,DIALOG_STYLE_INPUT,"Registrieren","Passwort wählen um ACC zu erstellen","Registrieren","Abbrechen");
    }
    Register(playerid,inputtext);
    return 1;
    }
    }
    return 1;
    }


    public OnPlayerClickPlayer(playerid, clickedplayerid, source)
    {
    return 1;
    }


    stock Register(playerid,key[])
    {
    new Spieler[64];
    new Sname[MAX_PLAYER_NAME];
    GetPlayerName(playerid,Sname,sizeof(Sname));
    format(Spieler,sizeof(Spieler),"/Spieler/%s.txt",Sname);
    dini_Create(Spieler);
    dini_Set(Spieler,"Passwort",key);
    SendClientMessage(playerid,BLAU,"Du hast dich erfolgreich Registriert");
    return 1;
    }

    Hey Brotfische ;D


    Ich Habe ein Problem beim Login/register System so wie man es auch oben lesen kann ;)
    und bräuchte dringend Hilfe! :)
    ICh zeige euch hier erstmal die Script Zeile und dann die dazugehörigen ERRORS! ;)



    public OnPlayerConnect(playerid)
    {
    new pfad[128];
    format(pfad,128,"/Accounts/%s.txt",SpielerName(playerid));
    if(dini_Exists(pfad))
    {
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login","Gib dein Passwort ein:"Login","Abbrechen");
    }
    else
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"Registrieren","Gib dein gewünschtes Passwort ein:"Register","Abbrechen");
    }
    return 1;


    UND JETZT DIE ERRORS! :


    C:\Users\User\Desktop\GTA SAMP Server\gamemodes\test.pwn(40) : error 017: undefined symbol "SpielerName"
    C:\Users\User\Desktop\GTA SAMP Server\gamemodes\test.pwn(43) : error 001: expected token: "-string end-", but found "-identifier-"
    C:\Users\User\Desktop\GTA SAMP Server\gamemodes\test.pwn(43) : error 017: undefined symbol "Login"
    C:\Users\User\Desktop\GTA SAMP Server\gamemodes\test.pwn(43) : warning 215: expression has no effect
    C:\Users\User\Desktop\GTA SAMP Server\gamemodes\test.pwn(43) : error 001: expected token: ";", but found "-identifier-"
    C:\Users\User\Desktop\GTA SAMP Server\gamemodes\test.pwn(43) : fatal error 107: too many error messages on one line


    Ich würde mich über eure Hilfe Freuen! :)