Beiträge von BigBozZxX

    ich kann mich nicht einloggen ich muss immer einen neuen account machen



    public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid, calssid)
    {
    if(playertextid==Textdraw0[playerid])// Also wenn playertextid TextDraw0 ist dann ....
    {
    new plname[MAX_PLAYER_NAME];
    new string[64];
    GetPlayerName(playerid, plname, sizeof(plname));
    format(string, sizeof(string), "/Accounts/%s.ini", plname);
    new namestr[100], spname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, spname, sizeof(spname));
    format(namestr, sizeof(namestr), "Spieler ~r~~h~~h~%s~w~,", spname);
    TextDrawSetString(TdSpielerName, namestr);
    if(IsPlayerNPC(playerid))
    {
    SpawnPlayer(playerid);
    return 1;
    }
    if(gPlayerAccount[playerid] == 1 && gPlayerLogged[playerid] == 0)
    {
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login","Willkommen auf German-Golden-Reallife [GGR]~,\n\n\n\n Bitte Logge dich nun ein!\n\n\n","Login","Abbrechen");
    TextDrawHideForPlayer(playerid,Textdraw2);
    TextDrawHideForPlayer(playerid,Textdraw1);
    PlayerTextDrawDestroy(playerid,Textdraw0[playerid]);
    }
    else if(gPlayerAccount[playerid] == 0 && gPlayerLogged[playerid] == 0)
    {
    ShowPlayerDialog(playerid,DIALOG_REG,DIALOG_STYLE_MSGBOX,"Account","Herzlich Willkommen auf German-Golden-Reallife [GGR]~,\n\n\nWir Freuen uns das du zu uns gejoint bist.\n\n\nDamit du gleich Loslegen kannst,\n\nmusst du dich Registrieren.\n\nViel Spaß.","Erstellen","Abbrechen");
    TextDrawHideForPlayer(playerid,Textdraw2);
    TextDrawHideForPlayer(playerid,Textdraw1);
    PlayerTextDrawDestroy(playerid,Textdraw0[playerid]);
    }


    //return 1;
    }
    return 1;
    }

    was ist daran falsch


    das alles ist unter public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
    if(playertextid==Textdraw0[playerid])
    {



    new plname[MAX_PLAYER_NAME];
    new string[64];
    GetPlayerName(playerid, plname, sizeof(plname));
    format(string, sizeof(string), "/Accounts/%s.ini", plname);
    new namestr[100], spname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, spname, sizeof(spname));
    format(namestr, sizeof(namestr), "Spieler ~r~~h~~h~%s~w~,", spname);
    TextDrawSetString(TdSpielerName, namestr);
    if(gPlayerAccount[playerid] == 1 && gPlayerLogged[playerid] == 0)
    {
    ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login","Willkommen auf German-Golden-Reallife [GGR]~,\n\n\n\n Bitte Logge dich nun ein!\n\n\n","Login","Abbrechen");
    TextDrawHideForPlayer(playerid,Textdraw2);
    TextDrawHideForPlayer(playerid,Textdraw1);
    TextDrawDestroy(playerid,Textdraw0[playerid]); ----hier einfehler
    }
    else if(gPlayerAccount[playerid] == 0 && gPlayerLogged[playerid] == 0)
    {
    ShowPlayerDialog(playerid,DIALOG_REG,DIALOG_STYLE_MSGBOX,"Account","Herzlich Willkommen auf German-Golden-Reallife [GGR]~,\n\n\nWir Freuen uns das du zu uns gejoint bist.\n\n\nDamit du gleich Loslegen kannst,\n\nmusst du dich Registrieren.\n\nViel Spaß.","Erstellen","Abbrechen");
    TextDrawHideForPlayer(playerid,Textdraw2);
    TextDrawHideForPlayer(playerid,Textdraw1);
    TextDrawDestroy(playerid,Textdraw0[playerid]); ----hier einfehler
    }



    D:\pawno2\GHR.pwn(65196) : warning 213: tag mismatch
    D:\pawno2\GHR.pwn(65196) : warning 202: number of arguments does not match definition
    D:\pawno2\GHR.pwn(65203) : warning 213: tag mismatch
    D:\pawno2\GHR.pwn(65203) : warning 202: number of arguments does not match definition
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


    Header size: 14852 bytes
    Code size: 2685436 bytes
    Data size: 26929052 bytes
    Stack/heap size: 32768 bytes; estimated max. usage: unknown, due to recursion
    Total requirements:29662108 bytes


    4 Warnings.

    unter OnPlayerConnectFunction OnPlayerConnect(playerid)//Bin da
    {


    TextDrawShowForPlayer(playerid,LoadScreen);
    TextDrawShowForPlayer(playerid,Textdraw2);
    TextDrawShowForPlayer(playerid,Textdraw1);
    //SelectTextDraw(playerid, 0x00FF00FF);
    PlayerTextDrawShow(playerid,Textdraw0[playerid]);
    Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 272.000000, 217.000000, "Login/Register");
    PlayerTextDrawLetterSize(playerid, Textdraw0[playerid], 0.449999, 1.600000);
    PlayerTextDrawAlignment(playerid, Textdraw0[playerid], 1);
    PlayerTextDrawColor(playerid, Textdraw0[playerid], -1);
    PlayerTextDrawSetShadow(playerid, Textdraw0[playerid], -5);
    PlayerTextDrawSetOutline(playerid, Textdraw0[playerid], 0);
    PlayerTextDrawBackgroundColor(playerid, Textdraw0[playerid], 51);
    PlayerTextDrawFont(playerid, Textdraw0[playerid], 1);
    PlayerTextDrawSetProportional(playerid, Textdraw0[playerid], 1);
    PlayerTextDrawSetSelectable(playerid, Textdraw0[playerid], true);

    hallo
    Textdraw wird nicht angezeigt



    Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 272.000000, 217.000000, "Login/Register");
    PlayerTextDrawLetterSize(playerid, Textdraw0[playerid], 0.449999, 1.600000);
    PlayerTextDrawAlignment(playerid, Textdraw0[playerid], 1);
    PlayerTextDrawColor(playerid, Textdraw0[playerid], -1);
    PlayerTextDrawSetShadow(playerid, Textdraw0[playerid], -5);
    PlayerTextDrawSetOutline(playerid, Textdraw0[playerid], 0);
    PlayerTextDrawBackgroundColor(playerid, Textdraw0[playerid], 51);
    PlayerTextDrawFont(playerid, Textdraw0[playerid], 1);
    PlayerTextDrawSetProportional(playerid, Textdraw0[playerid], 1);
    PlayerTextDrawSetSelectable(playerid, Textdraw0[playerid], true);