Beiträge von Young

    Nein echt??


    Ihr sollt mir hier nur den cmd und dessen funktion angeben z.B.


    /givemoney [playerid] [amount] : Einem spieler geld geben

    Hallo,


    ich weiß nicht ob das der richtige thread ist weil das ja nicht wirklich ein scriptwunsch oder serverhilfe ist. also an die mods bitte verschieben falls dies der falsche ort ist ^^


    Also da ich ja an einem server arbeite und noch nie wirklich admin bei samp war hab ich eine Frage. Unzwar wäre es sehr cool wenn ihr mir mal die besten Admin commands auflisten könntet die ihr kennt wie z.B. /kick oder /ban .
    Wäre ebenfalls cool wenn ihr mir den code für den cmd geben könntet ^^


    Danke im vorraus :thumbup:

    Arbeite gerade an einem Busjobsystem ^^


    möchte das vehicle definieren und dann das:

    Zitat

    C:\Users\*****\Desktop\*\gamemodes\*.pwn(247) : error 017: undefined symbol "BUSL1"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.


    Errorlinie 247:
    BUSL1 = CreateVehicle(431,1258.0273,-1826.8971,12.9856,0.0032,6,1,-1);


    Was ist falsch oder fehlt mir ein Include?


    danke im vorraus ^^

    if(strcmp(cmd, "/lcnequip", true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
    {
    if(IsPlayerInRangeOfPoint(playerid,3.0,1277.6021,-786.3717,1089.9375))
    {
    if(GetPlayerMoney(playerid) >= 389)
    {
    GivePlayerWeapon(playerid, 24, 180);
    GivePlayerWeapon(playerid, 29, 280);
    GivePlayerWeapon(playerid, 2, 1);
    SetPlayerArmour(playerid,100);
    GivePlayerMoney(playerid, -389);
    SendClientMessage(playerid,COLOR_YELLOW,"Du hast dich Ausgerüstet! Kosten: 389$ (NO DM)");
    SendClientMessage(playerid,COLOR_YELLOW,"Ausrüstung: Deagle(180) , Golfschläger, Mp5(280), Armor");
    }
    else
    {
    SendClientMessage(playerid,COLOR_YELLOW,"Du hast nicht genügend Geld.");
    }
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Du bist nicht am Equip Punkt in der LCN Base!");
    }
    }
    }

    erstell den stock SpielerSpeichern und füg bei OnPlayerDisconnect SpielerSpeichern(playerid); hinzu.


    z.B.:


    stock SpielerSpeichern(playerid)
    {
    if(GetPVarInt(playerid,"loggedin")==1)
    {
    new Playerdata[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Playerdata,sizeof(Playerdata),"/Accounts/%s.txt",name);
    dini_IntSet(Playerdata,"Level",GetPlayerScore(playerid));
    dini_IntSet(Playerdata,"Geld",GetPlayerMoney(playerid));
    }
    return 1;
    }


    Nach diesem Schema den Stock

    Musst unter die Beiden Geschlechter "SpawnPlayer(playerid);" machen :)


    Hilft leider auch nix :/


    Hier der ganze script:


    #include <a_samp>
    #include <Dini>
    #include <zcmd>


    #define COLOR_WHITE 0xFFFFFFFF //HTML: #FFFFFF
    #define COLOR_RED 0xFF0000FF //HTML: #FF0000
    #define COLOR_ORANGE 0xFFBE00FF //HTML: #FFBE00


    #define DIALOG_REGISTER 1
    #define DIALOG_SEX 2
    #define DIALOG_LOGIN 3


    enum PlayerINFO
    {
    Sex,
    }
    new Player[MAX_PLAYERS][PlayerINFO];


    main()
    {
    print("\n----------------------------------");
    print(" Advanced Reallife by Redz");
    print("----------------------------------\n");
    }


    public OnGameModeInit()
    {
    SetGameModeText("by RedZ");


    UsePlayerPedAnims();
    ShowPlayerMarkers(0);
    LimitGlobalChatRadius(0);
    DisableInteriorEnterExits();



    AddPlayerClass(1,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(2,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(3,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(4,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(5,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(6,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(7,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(8,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(9,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(10,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(11,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(12,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(13,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(14,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(15,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(17,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(19,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(20,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(21,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(22,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(23,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(24,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(25,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(40,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(41,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(42,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(43,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(44,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(46,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(47,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(48,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(55,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(56,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(59,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(60,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(66,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(67,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(69,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(91,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(93,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(95,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(98,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(101,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(142,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(148,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(179,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(180,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(182,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(185,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(211,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(214,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(216,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(219,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(233,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);
    AddPlayerClass(299,425.5572,-1814.6844,6.6641,359.2578,0,0,0,0,0,0);


    CreatePickup(1239, 1, 426.2267,-1801.1307,5.5469, -1); //RENTROLLER
    CreatePickup(1559, 1, 1480.8396,-1772.0786,18.7958, -1); //STADTHALLEENTER
    CreatePickup(1559, 1, 390.7680,173.9793,1008.3828, -1); //STADTHALLEEXIT
    CreatePickup(1239, 1, 362.2527,173.5107,1008.3828, -1); //STADTHALLEVERWALTUNG


    Create3DTextLabel("Benutze '/rentroller'\num einen Roller zu mieten ($0).", COLOR_RED, 426.2267,-1801.1307,5.5469, 20.0, 0, 0);
    Create3DTextLabel("Benutze '/enter'", COLOR_RED, 1480.8396,-1772.0786,18.7958, 20.0, 0, 0);
    Create3DTextLabel("Benutze '/exit'", COLOR_RED, 390.7680,173.9793,1008.3828, 20.0, 0, 0);
    Create3DTextLabel("Benutze '/stadthalle'", COLOR_RED, 362.2527,173.5107,1008.3828, 20.0, 0, 0);


    CreateObject(997, 423, -1788.3000488281, 4.5, 0, 0, 2);
    CreateObject(997, 423, -1788.2998046875, 4.5, 0, 0, 1.99951171875);
    CreateObject(997, 431.39999389648, -1788.0999755859, 4.5, 0, 0, 0);
    CreateObject(996, 421.10000610352, -1797.1999511719, 5.3000001907349, 0, 0, 90);
    CreateObject(996, 421.10000610352, -1798.5999755859, 5.3000001907349, 0, 0, 270);
    CreateObject(996, 421.10000610352, -1806.9000244141, 5.3000001907349, 0, 0, 270);
    CreateObject(996, 421.099609375, -1815.19921875, 5.3000001907349, 0, 0, 269.99450683594);
    CreateObject(996, 421.89999389648, -1822.5999755859, 5.1999998092651, 0, 0, 0);
    CreateObject(997, 429.60000610352, -1822.5999755859, 4.5, 0, 0, 0);
    CreateObject(996, 433.10000610352, -1815.1999511719, 5.3000001907349, 0, 0, 270);
    CreateObject(996, 434, -1814.5999755859, 5.3000001907349, 0, 0, 0);
    CreateObject(997, 441.39999389648, -1814.4000244141, 4.5, 0, 0, 90);
    CreateObject(997, 441.39999389648, -1802.6999511719, 4.5, 0, 0, 90);
    CreateObject(997, 441.70001220703, -1793.5999755859, 4.5, 0, 0, 90);
    CreateObject(11494, 446.5, -1806.8000488281, 4.5, 0, 0, 44);
    CreateObject(1278, 429.79998779297, -1801.0999755859, 18.700000762939, 0, 0, 0);


    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid, 1470.9824,-904.4629,59.6022);
    SetPlayerFacingAngle(playerid, 215.2760);
    SetPlayerCameraPos(playerid, 1474.6107,-911.2298,61.5793);
    SetPlayerCameraLookAt(playerid, 1470.9824,-904.4629,59.6022);
    }


    public OnPlayerConnect(playerid)
    {
    if(IsPlayerNPC(playerid))return 1;
    new Playerdata[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Playerdata,sizeof(Playerdata),"/Accounts/%s.txt",name);
    if(dini_Exists(Playerdata))
    {
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"{FFBE00}Login-System","~*Herzlich Wilkommen*~\n\nEin Account mit diesem Namen wurde in der Datenbank gefunden.\n\nGebe nun dein Passwort ein:","Einloggen","Abbrechen");
    }
    else
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"{FFBE00}Register-System","~*Herzlich Wilkommen*~\n\nDu scheinst neu zu sein.\n\nGeb bitte nun dein gewünschte Passwort ein:","Registrieren","Abbrechen");
    }
    return 1;
    }


    public OnPlayerDisconnect(playerid, reason)
    {
    if(GetPVarInt(playerid,"loggedin")==1)
    {
    SavePlayer(playerid);
    }
    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==DIALOG_LOGIN)
    {
    if(response==0)
    {
    SendClientMessage(playerid,COLOR_ORANGE,"Login-System: {FFFFFF}Du hast den Vorgang abgebrochen und wurdest automatisch gekickt.");
    Kick(playerid);
    return 1;
    }
    if(response==1)
    {
    if(!strlen(inputtext))
    {
    SendClientMessage(playerid,COLOR_ORANGE,"Login-System: {FFFFFF}Dieses Passwort ist zu kurz.");
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"{FFBE00}Login-System","~*Herzlich Wilkommen*~\n\nEin Account mit diesem Namen wurde in der Datenbank gefunden.\n\nGebe nun dein Passwort ein:","Einloggen","Abbrechen");
    return 1;
    }
    else
    {
    LoginPlayer(playerid,inputtext);
    return 1;
    }
    }
    }
    if(dialogid==DIALOG_REGISTER)
    {
    if(response==0)
    {
    SendClientMessage(playerid,COLOR_ORANGE,"Register-System: {FFFFFF}Du hast den Vorgang abgebrochen und wurdest automatisch gekickt.");


    return 1;
    }
    if(response==1)
    {
    if(!strlen(inputtext))
    {
    SendClientMessage(playerid,COLOR_ORANGE,"Register-System: {FFFFFF}Dieses Passwort ist zu kurz.");
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"{FFBE00}Register-System","~*Herzlich Wilkommen*~\n\nDu scheinst neu zu sein.\n\nGeb bitte nun dein gewünschte Passwort ein:","Registrieren","Abbrechen");
    return 1;
    }
    else
    {
    RegisterPlayer(playerid,inputtext);
    SpawnPlayer(playerid);
    ShowPlayerDialog(playerid,DIALOG_SEX,DIALOG_STYLE_MSGBOX,"{FFBE00}Register-System","Wähle nun dein Geschlecht aus:","Männlich","Weiblich");
    return 1;
    }
    }
    }
    if(dialogid==DIALOG_SEX)
    {
    if(response==0)
    {
    SendClientMessage(playerid,COLOR_ORANGE,"Register-System: {FFFFFF}Herzlichen Glückwunsch zu deiner erfolgreichen Registration.");
    SetPVarInt(playerid,"Sex",0);
    SpawnPlayer(playerid);
    return 1;
    }
    if(response==1)
    {
    SendClientMessage(playerid,COLOR_ORANGE,"Register-System: {FFFFFF}Herzlichen Glückwunsch zu deiner erfolgreichen Registration.");
    SetPVarInt(playerid,"Sex",1);
    SpawnPlayer(playerid);
    return 1;
    }
    }
    return 1;
    }


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


    stock RegisterPlayer(playerid,key[])
    {
    new Playerdata[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Playerdata,sizeof(Playerdata),"/Accounts/%s.txt",name);
    dini_Create(Playerdata);
    dini_Set(Playerdata,"Password",key);
    SendClientMessage(playerid,COLOR_ORANGE,"Register-System: {FFFFFF}Erfolgreich registriert.");
    SetPlayerScore(playerid,1);
    SetPVarInt(playerid,"Sex",0);
    SetPVarInt(playerid,"loggedin",1);
    return 1;
    }


    stock LoginPlayer(playerid,key[])
    {
    new Playerdata[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Playerdata,sizeof(Playerdata),"/Accounts/%s.txt",name);
    if(!strcmp(key,dini_Get(Playerdata,"Password"),false))
    {
    LoadPlayer(playerid);
    SendClientMessage(playerid,COLOR_ORANGE,"Login-System: {FFFFFF}Erfolgreich eingeloggt.");
    return 1;
    }
    else
    {
    SendClientMessage(playerid,COLOR_ORANGE,"Login-System: {FFFFFF}Falsches Passwort.");
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"{#FFBE00}Login-System","~*Herzlich Wilkommen*~\n\nEin Account mit diesem Namen wurde in der Datenbank gefunden.\n\n Gebe nun dein Passwort ein:","Login","Abbrechen");
    return 1;
    }
    }


    stock LoadPlayer(playerid)
    {
    new Playerdata[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Playerdata,sizeof(Playerdata),"/Accounts/%s.txt",name);
    SetPlayerScore(playerid,dini_Int(Playerdata,"Level"));
    GivePlayerMoney(playerid,dini_Int(Playerdata,"Money"));
    SetPVarInt(playerid,"Sex",dini_Int(Playerdata,"Sex"));
    SetPVarInt(playerid,"loggedin",1);
    return 1;
    }



    stock SavePlayer(playerid)
    {
    if(GetPVarInt(playerid,"loggedin")==1)
    {
    new Playerdata[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(Playerdata,sizeof(Playerdata),"/Accounts/%s.txt",name);
    dini_IntSet(Playerdata,"Level",GetPlayerScore(playerid));
    dini_IntSet(Playerdata,"Geld",GetPlayerMoney(playerid));
    dini_IntSet(Playerdata,"Sex",GetPVarInt(playerid,"Sex"));
    }
    return 1;
    }


    stock PlayerName(playerid)
    {
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    return name;
    }

    Ich arbeite grade an einem Register/Login System.


    Habe es erstellt und alles funktionierte einwadfrei. Doch dann fügte ich die Geschlechtswahloption hinzu.


    D.h. :


    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    if(dialogid==DIALOG_LOGIN)
    {
    if(response==0)
    {
    SendClientMessage(playerid,COLOR_ORANGE,"Login-System: {FFFFFF}Du hast den Vorgang abgebrochen und wurdest automatisch gekickt.");
    Kick(playerid);
    return 1;
    }
    if(response==1)
    {
    if(!strlen(inputtext))
    {
    SendClientMessage(playerid,COLOR_ORANGE,"Login-System: {FFFFFF}Dieses Passwort ist zu kurz.");
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"{FFBE00}Login-System","~*Herzlich Wilkommen*~\n\nEin Account mit diesem Namen wurde in der Datenbank gefunden.\n\nGebe nun dein Passwort ein:","Einloggen","Abbrechen");
    return 1;
    }
    else
    {
    LoginPlayer(playerid,inputtext);
    return 1;
    }
    }
    }
    if(dialogid==DIALOG_REGISTER)
    {
    if(response==0)
    {
    SendClientMessage(playerid,COLOR_ORANGE,"Register-System: {FFFFFF}Du hast den Vorgang abgebrochen und wurdest automatisch gekickt.");


    return 1;
    }
    if(response==1)
    {
    if(!strlen(inputtext))
    {
    SendClientMessage(playerid,COLOR_ORANGE,"Register-System: {FFFFFF}Dieses Passwort ist zu kurz.");
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"{FFBE00}Register-System","~*Herzlich Wilkommen*~\n\nDu scheinst neu zu sein.\n\nGeb bitte nun dein gewünschte Passwort ein:","Registrieren","Abbrechen");
    return 1;
    }
    else
    {
    RegisterPlayer(playerid,inputtext);
    ShowPlayerDialog(playerid,DIALOG_SEX,DIALOG_STYLE_MSGBOX,"{FFBE00}Register-System","Wähle nun dein Geschlecht aus:","Männlich","Weiblich");
    return 1;
    }
    }
    }
    if(dialogid==DIALOG_SEX)
    {
    if(response==0)
    {
    SendClientMessage(playerid,COLOR_ORANGE,"Register-System: {FFFFFF}Herzlichen Glückwunsch zu deiner erfolgreichen Registration.");
    SetPVarInt(playerid,"Sex",0);
    return 1;
    }
    if(response==1)
    {
    SendClientMessage(playerid,COLOR_ORANGE,"Register-System: {FFFFFF}Herzlichen Glückwunsch zu deiner erfolgreichen Registration.");
    SetPVarInt(playerid,"Sex",1);
    return 1;
    }
    }
    return 1;
    }


    Alles funktioniert! Nur wenn ich das gewünschte passwort beim registrieren eingebe kommt auf einmal die skinauswahl und cj ist da. (Natürlich wird der Geschlechtswahl Dialog angezeigt und funktioniert) Nun Kann ich weder Spawnen noch einen anderen Skin auswählen oder ins Menü [ESC] gehen. Wenn ich SAMP schließe und in die Accounts schaue, sehe ich das das Geschlecht trozdem richtig angegeben ist. Das Problem liegt hierbei das ich nicht spawnen oder den skin auswählen kann...

    Hallo :)


    Hier mein Script:
    else if(PlayerToPoint(5,i,1549.7129,-2323.1694,13.4296))
    {
    if(schulung[i] == 4)
    {
    SetPVarInt(playerid,"Führerschein",1);
    DestroyVehicle(Fahrschulauto);
    DisablePlayerCheckpoint(i);
    SendClientMessage(i, COLOR_YELLOWGREEN, "Sie haben die Praxis Bestanden Viel Spaß bein Zukünftigen Autofahren.");
    schulung[i] = 0;
    }
    }


    Hier die Fehlermeldung:

    Zitat

    C:\Users\*****\******\********\gamemodes\*******.pwn(1172) : error 017: undefined symbol "playerid"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.

    Hi


    Wie mache ich es, dass ich einen Countdown auf dem Screen habe wenn ich mich im Krankenhaus befinde?


    D.h. ich bin gestorben und bin nun füur 120 Sekunden im Krankenhaus (bis dahin hab ich es geschafft) und möchte einen Countdown nach dem "GameTextForPlayer" Prinzip.


    Das sollte ungefähr so aussehen: Du bist noch für 120 Sekunden im Krankenhaus.


    Die 120 Sekunden sollen sich runterzählen also je Sekunden -1.


    Danke im Vorraus :))