Beiträge von nicern5560

    unter
    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])

    aber wie krieg ich das hier drunter ? :D


    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    if(dialogid==DIALOG_LOGIN)
    {
    if(response==0)
    {
    SendClientMessage(playerid,BLAU,"Du hast den Vorgang abgebrochen.");
    Kick(playerid);
    return 1;
    }
    if(response==1)
    {
    if(!strlen(inputtext))
    {
    SendClientMessage(playerid,BLAU,"Das Passwort war nicht lang genug.");
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Dein Account wurde gefunden. Gib bitte das Passwort ein.","Login","Abbrechen");
    return 1;
    }
    else
    {
    Login(playerid,inputtext);
    return 1;
    }
    }
    }


    {
    if(response==0)
    {
    SendClientMessage(playerid,BLAU,"Du hast den Vorgang abgebrochen.");
    Kick(playerid);
    return 1;
    }
    if(response==1)
    {
    if(!strlen(inputtext))
    {
    SendClientMessage(playerid,BLAU,"Das Passwort war nicht lang genug.");
    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrieren","Gib bitte das gewünschte Passwort ein:","Register","Abbrechen");
    return 1;
    }
    else
    {
    Register(playerid,inputtext);
    return 1;
    }
    }
    return 1;
    }
    }

    if(dialogid == Skinwahl) { if(response) { if(listitem == 0) { SetPlayerSkin(playerid,126); } if(listitem == 1) { SetPlayerSkin(playerid,40);//USW } } }


    Danke schonmal aber wohin muss dass ?


    if(dialogid == Skinwahl) { if(response) { if(listitem == 0) { SetPlayerSkin(playerid,126); } if(listitem == 1) { SetPlayerSkin(playerid,40);//USW } } }

    Wählt der die skins den dann auch aus ?

    Also ich würde gerne ein pickup machen so dass wenn ich reinlaufe eine liste kommt wo mann die skins ( ID 265 266 267 280 281 282 283 284 285 288 ) auswählen kann. z.b. steht dann in der Liste : Skinname | SkinID oder so.



    Bin soweit



    if(pickupid == clothes)
    {
    if(isPlayerInFrakt(playerid,1))
    {



    }
    }


    Danke im vorraus.

    ocmd:admhelp(playerid,params[])
    {
    if(!isPlayerAnAdmin(playerid,1))return SendClientMessage(playerid,ROT,"Du bist kein Admin.");
    ShowPlayerDialog(playerid,DIALOG_ADMHELP,DIALOG_STYLE_MSGBOX,"AdminHilfe","AdminLevel 1 = Supporter | AdminLevel 2 = Admin | AdminLevel 3 = Community-Leitung\nAb AdminLevel 1: \n/kick = kicken\n/tvon = TvPlayerOn\n/tvoff = TvPlayerOff\n/goto = teleportieren\n/godon/off = GodMode\n/adutyon/off = On/OffDuty gehen\n/sv = SpawnVehicle\n/dv = DestroySpawnVehicle\n/repair = RepairVehicle\n/flip = Flip dein Auto\n/tc = ServerTeamChat\nAb AdminLevel 2:\n/ban = bannen\n/respawnallcars\nAb AdminLevel 3:\n/restart = Neustart via gmx\n/setadmin = Admin/Supporter machen","Ok");
    return 1;
    }


    habs jetzt so und immer noch 5 Fehler.

    ocmd:admhelp(playerid,params[])
    {
    if(!isPlayerAnAdmin(playerid,1))return SendClientMessage(playerid,ROT,"Du bist kein Admin.");
    ShowPlayerDialog(playerid,DIALOG_ADMHELP,DIALOG_STYLE_INPUT,"AdminHilfe","AdminLevel 1 = Supporter | AdminLevel 2 = Admin | AdminLevel 3 = Community-Leitung \n Ab AdminLevel 1: \n /kick = kicken \n /tvon = TvPlayerOn \n /tvoff = TvPlayerOff \n /goto = teleportieren \n /godon/off = GodMode \n /adutyon/off = On/OffDuty gehen \n /sv = SpawnVehicle \n /dv = DestroySpawnVehicle \n /repair = RepairVehicle \n /flip = Flip dein Auto \n /tc = ServerTeamChat \n Ab AdminLevel 2: \n /ban = bannen \n /respawnallcars \n Ab AdminLevel 3: \n /restart = Neustart via gmx \n /setadmin = Admin/Supporter machen","Ok");
    return 1;
    }


    Ich bekomme dort 5 errors :O


    C:\Users\Nico\Desktop\SAMP Server\gamemodes\360script.pwn(920) : error 075: input line too long (after substitutions)
    C:\Users\Nico\Desktop\SAMP Server\gamemodes\360script.pwn(921) : error 027: invalid character constant
    C:\Users\Nico\Desktop\SAMP Server\gamemodes\360script.pwn(921) : error 017: undefined symbol "AdminLevel"
    C:\Users\Nico\Desktop\SAMP Server\gamemodes\360script.pwn(921) : error 022: must be lvalue (non-constant)
    C:\Users\Nico\Desktop\SAMP Server\gamemodes\360script.pwn(921) : fatal error 107: too many error messages on one line


    Kriege ein paar fehler :


    ocmd:ac
    {
    if(!isPlayerAnAdmin(playerid,3))return SendClientMessage(playerid,ROT,"Du bist kein Admin.");
    if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, "Benutzung: /ac [Text]");
    new str[MAX_PLAYER_NAME];
    GetPlayerName(playerid, str, MAX_PLAYER_NAME);
    format(str, sizeof(str), "* Admin %s: %s", str, cmdtext[4]);
    SendClientMessageToAll(ORANGE, str);
    return 1;
    }


    C:\Users\Nico\Desktop\SAMP Server\gamemodes\360script.pwn(917) : error 010: invalid function or declaration
    C:\Users\Nico\Desktop\SAMP Server\gamemodes\360script.pwn(918) : error 010: invalid function or declaration
    C:\Users\Nico\Desktop\SAMP Server\gamemodes\360script.pwn(919) : error 010: invalid function or declaration
    C:\Users\Nico\Desktop\SAMP Server\gamemodes\360script.pwn(921) : error 021: symbol already defined: "GetPlayerName"
    C:\Users\Nico\Desktop\SAMP Server\gamemodes\360script.pwn(924) : error 010: invalid function or declaration
    C:\Users\Nico\Desktop\SAMP Server\gamemodes\360script.pwn(1526) : warning 203: symbol is never used: "str"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    5 Errors.

    habe ein kleines problem sondern kommen diese fehler
    C:\Users\Nico\Desktop\SAMP Server\gamemodes\360script.pwn(915) : error 010: invalid function or declaration
    C:\Users\Nico\Desktop\SAMP Server\gamemodes\360script.pwn(916) : error 010: invalid function or declaration
    C:\Users\Nico\Desktop\SAMP Server\gamemodes\360script.pwn(917) : error 010: invalid function or declaration
    C:\Users\Nico\Desktop\SAMP Server\gamemodes\360script.pwn(919) : error 021: symbol already defined: "GetPlayerName"
    C:\Users\Nico\Desktop\SAMP Server\gamemodes\360script.pwn(922) : error 010: invalid function or declaration
    C:\Users\Nico\Desktop\SAMP Server\gamemodes\360script.pwn(924) : error 010: invalid function or declaration
    C:\Users\Nico\Desktop\SAMP Server\gamemodes\360script.pwn(1538) : warning 203: symbol is never used: "str"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    6 Errors.


    ocmd:ac
    {
    if(!isPlayerAnAdmin(playerid,3))return SendClientMessage(playerid,ROT,"Du bist kein Admin.");
    if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, "Benutzung: /ac [Text]");
    new str[128];
    GetPlayerName(playerid, str, sizeof(str));
    format(str, sizeof(str), "* Admin %s: %s", str, cmdtext[4]);
    SendClientMessageToAll(ORANGE, str);
    return 1;
    }
    return 0;
    }