Beiträge von luiluiboy014

    cache_get_field_content(0,"Geburtstag",result);
    Spieler[playerid][pGeburtstag] = strval(result);


    mysql_format(MySqlConnection,query,sizeof(query),"pOrgLeader='%d',pOrgMember='%d',pLohn='%d',WaitPerso='%d',pMarried='%s',pBuyClothes='%d',pTsIdent='%s',pIll='%d',pConterminatedTime='%d',pBitchSkill='%d',pBitchFuckCount='%d',pMedicHealplayerSkill='%d',pMedicHealCount='%d',Geburtstag='%d' WHERE Name='%s'",
    Spieler[playerid][pOrgLeader],Spieler[playerid][pOrgMember],Spieler[playerid][pLohn],Spieler[playerid][WaitPerso],Spieler[playerid][pMarried],Spieler[playerid][pBuyClothes],Spieler[playerid][pTsIdent],Spieler[playerid][pIll],Spieler[playerid][pConterminatedTime],
    Spieler[playerid][pBitchSkill],Spieler[playerid][pBitchFuckCount],Spieler[playerid][pMedicHealplayerSkill],Spieler[playerid][pMedicHealCount],Spieler[playerid][pGeburtstag],Spieler[playerid][pName]);

    C:\Users\Jeremias\Desktop\Server\Server\gamemodes\GeTmyselfmade.pwn(76303) : warning 219: local variable "jahr" shadows a variable at a preceding level
    C:\Users\Jeremias\Desktop\Server\Server\gamemodes\GeTmyselfmade.pwn(76303) : warning 219: local variable "monat" shadows a variable at a preceding level
    C:\Users\Jeremias\Desktop\Server\Server\gamemodes\GeTmyselfmade.pwn(76303) : warning 219: local variable "tag" shadows a variable at a preceding level

    Hallo Habe ein kleines problem Bei mir wird das alter falsch gespeichert was kann das sein


    #define GetYearFromTimestamp(%0) floatround((gettime() - 0)/31536000)



    case DIALOG_REGISTER4:
    {
    getdate(jahr,monat,tag);
    gettime(stunde,minute,sekunde);
    new DateInfo[3][20],string[200];
    split(inputtext,DateInfo,'.');
    if(response == 0)return Kick(playerid);
    else
    {
    if(strlen(inputtext) > 10)
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER4,DIALOG_STYLE_INPUT,""#SERVERFARBE""#SERVERNAME"{FFFFFF}: Registrierung/Alter","Gebe nun bitte dein Alter ein. | Angabe bitte in TT.MM.JJJJ","Weiter","Verlassen");
    return 1;
    }
    if(!IsValidDate(strval(DateInfo[0]),strval(DateInfo[1]),strval(DateInfo[2])))
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER4,DIALOG_STYLE_INPUT,""#SERVERFARBE""#SERVERNAME"{FFFFFF}: Registrierung/Alter","Gebe nun bitte dein Alter ein. | Angabe bitte in TT.MM.JJJJ","Weiter","Verlassen");
    return 1;
    }
    if(jahr - strval(DateInfo[2]) > 100 || strval(DateInfo[2]) < 1 || strval(DateInfo[2]) >= jahr)
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER4,DIALOG_STYLE_INPUT,""#SERVERFARBE""#SERVERNAME"{FFFFFF}: Registrierung/Alter","Gebe nun bitte dein Alter ein. | Angabe bitte in TT.MM.JJJJ","Weiter","Verlassen");
    return 1;
    }
    new check = jahr - strval(DateInfo[2]);
    if(check == jahr)
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER4,DIALOG_STYLE_INPUT,""#SERVERFARBE""#SERVERNAME"{FFFFFF}: Registrierung/Alter","Gebe nun bitte dein Alter ein. | Angabe bitte in TT.MM.JJJJ","Weiter","Verlassen");
    return 1;
    }
    if(strval(DateInfo[1]) > monat)
    {
    check -= 1;
    }
    else if(strval(DateInfo[1]) == monat && strval(DateInfo[0]) > tag)
    {
    check -= 1;
    }
    if(GetYearFromTimestamp(playerid) < 14 && GetYearFromTimestamp(playerid) > 50)
    {
    ShowPlayerDialog(playerid,DIALOG_REGISTER4,DIALOG_STYLE_INPUT,""#SERVERFARBE""#SERVERNAME"{FFFFFF}: Registrierung/Alter","Gebe nun bitte dein Alter ein. | Angabe bitte in TT.MM.JJJJ","Weiter","Verlassen");
    return 1;
    }
    Spieler[playerid][pYearsOld] = GetYearFromTimestamp(mktime(stunde,minute,sekunde,strval(DateInfo[0]),strval(DateInfo[1]),strval(DateInfo[2])));
    format(string,sizeof(string),"Und du bist also %i Jahre alt.",floatround(playerid));
    SendClientMessage(playerid,HELLROT,string);
    StopAudioStreamForPlayer(playerid);
    ImTutorial[playerid] = 1;
    CreateAccount(playerid);
    return 1;
    }
    }


    Kann mir da einer helfen bitte

    also noch mall wen ich mich Regestrire kommt alles gans normal dan kommt der skin aus wahl Tabele ich wehle mit der maus ein aus und der skin kommt auch im spiel wenn ich mich aus loge und wieder einloge kommt der letzte skin der auf der liste steht 293 komm dan ob wohl ich 19 Gewählt habe

    also er soll das nach der Regestrirung Speichen ich wehle den skin und es passirt aber speichen tut der den letztn skin der da stehet


    if(extraid == Skin_Liste)
    {
    if(response==0)
    {
    new skin[21];
    skin[0] = 4; {PlayerInfo[playerid][pModel] = 4;}
    skin[1] = 5; {PlayerInfo[playerid][pModel] = 5;}
    skin[2] = 19; {PlayerInfo[playerid][pModel] = 19;}
    skin[3] = 20; {PlayerInfo[playerid][pModel] = 20;}
    skin[4] = 21; {PlayerInfo[playerid][pModel] = 21;}
    skin[5] = 101; {PlayerInfo[playerid][pModel] = 101;}
    skin[6] = 102; {PlayerInfo[playerid][pModel] = 102;}
    skin[7] = 103; {PlayerInfo[playerid][pModel] = 103;}
    skin[8] = 105; {PlayerInfo[playerid][pModel] = 105;}
    skin[9] = 106; {PlayerInfo[playerid][pModel] = 106;}
    skin[10] = 127; {PlayerInfo[playerid][pModel] = 127;}
    skin[11] = 149; {PlayerInfo[playerid][pModel] = 149;}
    skin[12] = 163; {PlayerInfo[playerid][pModel] = 163;}
    skin[13] = 164; {PlayerInfo[playerid][pModel] = 164;}
    skin[14] = 165; {PlayerInfo[playerid][pModel] = 165;}
    skin[15] = 166; {PlayerInfo[playerid][pModel] = 166;}
    skin[16] = 187; {PlayerInfo[playerid][pModel] = 187;}
    skin[17] = 269; {PlayerInfo[playerid][pModel] = 269;}
    skin[18] = 270; {PlayerInfo[playerid][pModel] = 270;}
    skin[19] = 271; {PlayerInfo[playerid][pModel] = 271;}
    skin[20] = 293; {PlayerInfo[playerid][pModel] = 293;}
    ShowModelSelectionMenuEx(playerid, skin, 21, "Skinauswahl", Skin_Liste);
    }
    if(response==1)
    {
    Skinchange[playerid] = 0;
    SendClientMessage(playerid, GRUEN, "Skin erfolgreich ausgewählt!");
    Skin[playerid] = modelid;
    SetPlayerSkin(playerid, modelid);


    PlayerTextDrawDestroy(playerid, Textdraw[playerid][6]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][7]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][8]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][9]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][10]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][11]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][12]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][13]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][14]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][15]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][16]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][17]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][18]);
    PlayerTextDrawDestroy(playerid, Textdraw[playerid][19]);
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,-691.9375,939.5940,13.6328);
    SetPlayerFacingAngle(playerid,263.5031);
    SetPlayerCameraPos(playerid,-687.0352,939.7754,13.6328);
    SetPlayerCameraLookAt(playerid,-691.9375,939.5940,13.6328);

    Hallo Leute.



    Habe Da ein kleines Problem die skins werden falsch gespcheichert der nimt den ersten skin und speichert den Letzten Was ist hier falsch Kann Mir da einer Helfen Bitte






    new skin[21];
    skin[0] = 4; {PlayerInfo[playerid][pModel] = 4;}
    skin[1] = 5; {PlayerInfo[playerid][pModel] = 5;}
    skin[2] = 19; {PlayerInfo[playerid][pModel] = 19;}
    skin[3] = 20; {PlayerInfo[playerid][pModel] = 20;}
    skin[4] = 21; {PlayerInfo[playerid][pModel] = 21;}
    skin[5] = 101; {PlayerInfo[playerid][pModel] = 101;}
    skin[6] = 102; {PlayerInfo[playerid][pModel] = 102;}
    skin[7] = 103; {PlayerInfo[playerid][pModel] = 103;}
    skin[8] = 105; {PlayerInfo[playerid][pModel] = 105;}
    skin[9] = 106; {PlayerInfo[playerid][pModel] = 106;}
    skin[10] = 127; {PlayerInfo[playerid][pModel] = 127;}
    skin[11] = 149; {PlayerInfo[playerid][pModel] = 149;}
    skin[12] = 163; {PlayerInfo[playerid][pModel] = 163;}
    skin[13] = 164; {PlayerInfo[playerid][pModel] = 164;}
    skin[14] = 165; {PlayerInfo[playerid][pModel] = 165;}
    skin[15] = 166; {PlayerInfo[playerid][pModel] = 166;}
    skin[16] = 187; {PlayerInfo[playerid][pModel] = 187;}
    skin[17] = 269; {PlayerInfo[playerid][pModel] = 269;}
    skin[18] = 270; {PlayerInfo[playerid][pModel] = 270;}
    skin[19] = 271; {PlayerInfo[playerid][pModel] = 271;}
    skin[20] = 293; {PlayerInfo[playerid][pModel] = 293;}
    ShowModelSelectionMenuEx(playerid, skin, 21, "Skinauswahl", Skin_Liste);


    Bitte um Hilfe