Angepinnt [SAMMELTHREAD] Kleine Coding Fragen

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

Es gibt Neuigkeiten! Ab sofort könnt ihr dem Donators Club auf Lebenszeit beitreten.
Weitere Infos im Thema Donator's Club ab heute wieder verfügbar!

  • geht bei beiden nicht
    zusätzliche 1)

    PAWN-Quellcode

    1. html {
    2. background-color: #e9e9e9;
    3. }
    4. #userPanel {
    5. background-repeat: repeat-x;
    6. background-position: left bottom;
    7. padding-left: 440px;
    8. }
    9. .userPanel, .userPanel a {
    10. color: #fff;
    11. }
    12. #userPanel a:hover {
    13. color:#bfd9ff;
    14. }
    15. #userNote {
    16. padding-left: 8px;
    17. }
    18. #search {
    19. margin-top: 110px;
    20. padding-right: 400px;
    21. }
    22. #mce_editor_0 {
    23. background-image: url(../images/bynate/editor.png);
    24. }
    25. input#searchInput {
    26. border: 0px solid #394f5c;
    27. background-repeat: no-repeat !important;
    28. background: transparent;
    29. color: #000;
    30. width: 125px;
    31. }
    32. #logo, #header {
    33. border: 0px;
    34. }
    35. #headerContainer {
    36. background-image:url("../images/bynate/headerContainer.png");
    37. background-position: center top;
    38. background-repeat: repeat-x;
    39. }
    40. .mainMenu img {
    41. display: none;
    42. }
    43. .mainMenu {
    44. border: 0;
    45. background: transparent;
    46. position: relative;
    47. margin-top: -100px;
    48. z-index: 98;
    49. }
    50. .mainMenuInner {
    51. border: 0px !important;
    52. padding-left:25px;
    53. }
    54. .mainMenu {
    55. position: relative;
    56. top: 1px;
    57. background: transparent;
    58. border: 0px;
    59. z-index: 99;
    60. }
    61. .mainMenu ul {
    62. padding-left: 10px;
    63. padding-right: 5px;
    64. }
    65. .mainMenu .active a, .mainMenu .firstActive a, .mainMenu .lastActive a {
    66. background-image: url("../images/bynate/mainMenuActive.png") !important;
    67. background-position: center bottom;
    68. background-repeat: no-repeat;
    69. }
    70. .mainMenu a:hover,.active a:hover {
    71. background:transparent url(../images/bynate/mainMenuActive.png) scroll 0 0;
    72. background-position: center bottom;
    73. background-repeat: no-repeat;
    74. }
    75. .mainMenu a {
    76. border: 0px;
    77. padding-bottom: 6px;
    78. padding-top: 15px;
    79. padding-left: 15px;
    80. padding-right: 15px;
    81. }
    82. #main {
    83. width: 950px;
    84. }
    85. #mainContainer {
    86. margin-top: 57px;
    87. padding: 0px;
    88. padding-left: 0px;
    89. padding-right: -2px;
    90. width: 1040px;
    91. margin-left: auto;
    92. margin-right: auto;
    93. background-image:url("../images/bynate/main.png");
    94. background-repeat: repeat-y;
    95. }
    96. .containerHead .containerIcon {
    97. float: right;
    98. }
    99. .containerHead .containerContent {
    100. margin-left: 10px;
    101. }
    102. .infoBox .container-1, .infoBox .container-2 {
    103. background: #e5e5e5;
    104. }
    105. .messageRight, .messageFramedRight {
    106. background : transparent url(../images/bynate/message.png) repeat-x;
    107. background-color : #cccccc;
    108. background-position: top right;
    109. }
    110. .messageLeft, .messageFramedLeft {
    111. background : transparent url(../images/bynate/message.png) repeat-x;
    112. background-color : #cccccc;
    113. background-position: top left;
    114. }
    115. #footer{
    116. border: 0px;
    117. background-image:url("../images/bynate/footer.png");
    118. background-position: left top;
    119. background-repeat: no-repeat;
    120. width:1045px;
    121. height: 70px;
    122. }
    123. .footerMenu ul {
    124. padding-left: 35px;
    125. color: #fff;
    126. }
    127. .footerOptions ul {
    128. padding-right: 35px;
    129. color: #fff;
    130. }
    131. .largeButtons a }
    132. line-height: 1;
    133. background-image: url("../images/bynate/largeButtons.png");
    134. background-position: right 0;
    135. background-repeat: no-repeat;
    136. padding: 0 7px 0 0;
    137. }
    138. .largeButtons a img {
    139. margin-top: 5px;
    140. margin-left: 7px;
    141. position: absolute;
    142. }
    143. .largeButtons a span }
    144. background-image: url("../images/bynate/largeButtons.png");
    145. background-position: left 1;
    146. background-repeat: no-repeat;
    147. padding: 9px 3px 0 36px;
    148. display: block;
    149. height: 25px;
    150. cursor: pointer;
    151. text-shadow: 0 -1px 0 #000;
    152. }
    153. .largeButtons a:hover {
    154. background-position: right -86px;
    155. }
    156. .largeButtons a:hover span {
    157. text-shadow: 0 -1px 0 #000;
    158. background-position: left -86px;
    159. }
    Alles anzeigen


    Zusätliche 2)

    PAWN-Quellcode

    1. .largeButtons a, .largeButtons li, .largeButtons a span { -webkit-border-radius: 5px; -moz-border-radius: 5px;}
    2. }
    3. .containerHead, .containerHead a {
    4. text-shadow: 0 1px 0 #000;
    5. }
    6. .smallButtons a span {
    7. text-shadow: 0 1px 0 #000;
    8. }
    9. .smallButtons a:hover span {
    10. text-shadow: 0 1px 0 #000;
    11. }
    12. .subTabMenu a span {
    13. text-shadow: 0 1px 0 #000;
    14. }
    15. .memberList li span {
    16. text-shadow: 0 1px 0 #000;
    17. }
    18. .tabMenu ul li.activeTabMenu a {
    19. text-shadow: 0 1px 0 #2F3B42;
    20. }
    21. .info, .success, .warning, .error {
    22. -webkit-border-radius: 8px;
    23. -moz-border-radius: 8px;
    24. border-radius: 8px;
    25. }
    26. .copyright:after {
    27. content: " | Design & Code by www.creative-styles.org"
    28. }
    29. input#searchInput, .slider {
    30. -webkit-border-radius: 12px;
    31. -moz-border-radius: 12px;
    32. border-radius: 12px;
    33. }
    34. .info, .success, .warning, .error, .help, fieldset, .quoteBox, .wysiwygQuote, #userCard, .userCardInner, .sidebar .border, .sidebar .border .content, .avatarSelect li.container-4, .avatarSelect li label, .floatedElement, .popupMenu, .loginPopup, .loginPopup .container-1, .message, .messageInner, .messageFramedLeft .messageContent, .messageFramedLeft .messageContentInner, .messageFramedRight .messageContent, .messageFramedRight .messageContentInner, .messageFramedTop .messageContent, .messageFramedTop .messageContentInner, .simpleBar ul, .slider .handle {
    35. -webkit-border-radius: 5px;
    36. -moz-border-radius: 5px;
    37. border-radius: 5px;
    38. }
    39. textarea, select, input[type="text"], input[type="password"], .memberList li, .smallButtons > ul > li, .smallButtons > ul > li > a, .extraButton, .extraButton a, .optionButtons > ul > li, .optionButtons > ul > li > a, .subTabMenu .containerHead li a, .pmUsageBar, .userAvatarFramed, .userAvatarFramed a, .userAvatarFramed img, .simpleBar li a {
    40. -webkit-border-radius: 3px;
    41. -moz-border-radius: 3px;
    42. border-radius: 3px;
    43. }
    44. .pmUsageBar > div {
    45. -webkit-border-radius: 1px;
    46. -moz-border-radius: 1px;
    47. border-radius: 1px;
    48. }
    49. .messageLeft .messageContent, .messageLeft .messageContentInner {
    50. -webkit-border-top-right-radius: 5px;
    51. -webkit-border-bottom-right-radius: 5px;
    52. -moz-border-radius-topright: 5px;
    53. -moz-border-radius-bottomright: 5px;
    54. border-top-right-radius: 5px;
    55. border-bottom-right-radius: 5px;
    56. }
    57. .messageRight .messageContent, .messageRight .messageContentInner {
    58. -webkit-border-top-left-radius: 5px;
    59. -webkit-border-bottom-left-radius: 5px;
    60. -moz-border-radius-topleft: 5px;
    61. -moz-border-radius-bottomleft: 5px;
    62. border-top-left-radius: 5px;
    63. border-bottom-left-radius: 5px;
    64. }
    65. .popupMenu li:first-child a, #boardlist .border, .titleBarPanel, .titleBarPanel .containerHead, .messagePreview, .subTabMenu, .subTabMenu .containerHead, .containerHead, .messageTop .messageSidebar, .messageFramedTop .messageSidebar, .thumbnailButtons div {
    66. -webkit-border-top-left-radius: 5px;
    67. -webkit-border-top-right-radius: 5px;
    68. -moz-border-radius-topleft: 5px;
    69. -moz-border-radius-topright: 5px;
    70. border-top-left-radius: 5px;
    71. border-top-right-radius: 5px;
    72. }
    73. .searchInputMenu .pageMenu, .popupMenu li:last-child a, .twoRows li:last-child a { /* last item wrong? */
    74. -webkit-border-bottom-left-radius: 5px;
    75. -webkit-border-bottom-right-radius: 5px;
    76. -moz-border-radius-bottomleft: 5px;
    77. -moz-border-radius-bottomright: 5px;
    78. border-bottom-left-radius: 5px;
    79. border-bottom-right-radius: 5px;
    80. }
    81. .tabMenu li:last-child, .tabMenu li:last-child a {
    82. -webkit-border-top-right-radius: 5px;
    83. -moz-border-radius-topright: 5px;
    84. border-top-right-radius: 5px;
    85. }
    86. .tabMenu li:first-child, .tabMenu li:first-child a {
    87. -webkit-border-top-left-radius: 5px;
    88. -moz-border-radius-topleft: 5px;
    89. border-top-left-radius: 5px;
    90. }
    91. .codeBox {
    92. -webkit-border-top-left-radius: 3px;
    93. -webkit-border-top-right-radius: 3px;
    94. -moz-border-radius-topleft: 3px;
    95. -moz-border-radius-topright: 3px;
    96. border-top-left-radius: 3px;
    97. border-top-right-radius: 3px;
    98. }
    99. #boardlist .border .boardlistInner, .twoRows li:last-child a, .dataList li:last-child, .sidebar .tabMenuContent .thumbnailView {
    100. -webkit-border-bottom-left-radius: 3px;
    101. -webkit-border-bottom-right-radius: 3px;
    102. -moz-border-radius-bottomleft: 3px;
    103. -moz-border-radius-bottomright: 3px;
    104. border-bottom-left-radius: 3px;
    105. border-bottom-right-radius: 3px;
    106. }
    107. .messageTop .messageContent, .messageTop .messageContentInner, #boardlist ul .boardlistInner {
    108. -webkit-border-radius: 0;
    109. -moz-border-radius: 0;
    110. border-radius: 0;
    111. }
    112. .mceToolbar .popupMenu, .mceToolbar .popupMenu li, .mceToolbar .popupMenu li a, .editorCodeView, .column fieldset .editor, .column fieldset .border, .attachmentPreview, .attachmentPreview li, .tableList td.containerHead, .contentBox .subTabMenu .containerHead, .balloonArrow {
    113. -webkit-border-radius: 0 !important;
    114. -moz-border-radius: 0 !important;
    115. border-radius: 0 !important;
    116. }
    117. .loginPopup input#quickLoginUsername {
    118. -webkit-border-top-right-radius: 0;
    119. -webkit-border-bottom-right-radius: 0;
    120. -moz-border-radius-topright: 0;
    121. -moz-border-radius-bottomright: 0;
    122. border-top-right-radius: 0;
    123. border-bottom-right-radius: 0;
    124. }
    125. .loginPopup input#quickLoginPassword {
    126. -webkit-border-top-left-radius: 0;
    127. -webkit-border-bottom-left-radius: 0;
    128. -moz-border-radius-topleft: 0;
    129. -moz-border-radius-bottomleft: 0;
    130. border-top-left-radius: 0;
    131. border-bottom-left-radius: 0;
    132. }
    133. .popupMenu li a, #boardlist .border .boardlistInner:first-child {
    134. -webkit-border-bottom-left-radius: 0;
    135. -webkit-border-bottom-right-radius: 0;
    136. -moz-border-radius-bottomleft: 0;
    137. -moz-border-radius-bottomright: 0;
    138. border-bottom-left-radius: 0;
    139. border-bottom-right-radius: 0;
    140. }
    141. .messageBody a.enlargable img, .galleryAlbumCover img, .galleryIndex .floatedElement:hover a .thumbnail img, .galleryIndex .floatedElement:hover a .thumbnail .lower, .galleryPhoto img:hover, .galleryPhotoEdit img:hover {
    142. -webkit-box-shadow: 0 3px 7px #000;
    143. -moz-box-shadow: 0 3px 7px #000;
    144. box-shadow: 0 3px 7px #000;
    145. }
    146. .galleryPhoto img, .galleryPhotoEdit img, .galleryAlbumEdit img, .balloonContent {
    147. -webkit-box-shadow: 0 3px 7px #000;
    148. -moz-box-shadow: 0 3px 7px #000;
    149. box-shadow: 0 3px 7px #000;
    150. }
    151. .avatarSelect li label:hover, .galleryIndex .floatedElement .thumbnail img, .lower, .sidebar .floatedElement .thumbnail img {
    152. -webkit-box-shadow: 0 1px 3px #000;
    153. -moz-box-shadow: 0 1px 3px #000;
    154. box-shadow: 0 1px 3px #000;
    155. }
    156. .squared .thumbnail img {
    157. -webkit-box-shadow: 0 1px 3px #000;
    158. -moz-box-shadow: 0 1px 3px #000;
    159. box-shadow: 0 1px 3px #000;
    160. }
    161. .imageViewerCurrentImage, .overlay {
    162. -webkit-box-shadow: 0 3px 23px #000;
    163. -moz-box-shadow: 0 3px 23px #000;
    164. box-shadow: 0 3px 23px #000;
    165. }
    166. .isPrivate, .squared .thumbnail img.pointer {
    167. -webkit-box-shadow: none !important;
    168. -moz-box-shadow: none !important;
    169. box-shadow: none !important;
    170. }
    Alles anzeigen


    Wo soll das jetzt hin?!
  • Das Beim ersten...


    Spoiler anzeigen

    Quellcode

    1. html {
    2. background-color: #e9e9e9;
    3. }
    4. #userPanel {
    5. display:none;
    6. }
    7. .userPanel, .userPanel a {
    8. color: #fff;
    9. }
    10. #userPanel a:hover {
    11. color:#bfd9ff;
    12. }
    13. #userNote {
    14. padding-left: 8px;
    15. }
    16. #search {
    17. margin-top: 110px;
    18. padding-right: 400px;
    19. }
    20. #mce_editor_0 {
    21. background-image: url(../images/bynate/editor.png);
    22. }
    23. input#searchInput {
    24. border: 0px solid #394f5c;
    25. background-repeat: no-repeat !important;
    26. background: transparent;
    27. color: #000;
    28. width: 125px;
    29. }
    30. #logo, #header {
    31. border: 0px;
    32. }
    33. #headerContainer {
    34. background-image:url("../images/bynate/headerContainer.png");
    35. background-position: center top;
    36. background-repeat: repeat-x;
    37. }
    38. .mainMenu img {
    39. display: none;
    40. }
    41. .mainMenu {
    42. border: 0;
    43. background: transparent;
    44. position: relative;
    45. margin-top: -100px;
    46. z-index: 98;
    47. }
    48. .mainMenuInner {
    49. border: 0px !important;
    50. padding-left:25px;
    51. }
    52. .mainMenu {
    53. position: relative;
    54. top: 1px;
    55. background: transparent;
    56. border: 0px;
    57. z-index: 99;
    58. }
    59. .mainMenu ul {
    60. padding-left: 10px;
    61. padding-right: 5px;
    62. }
    63. .mainMenu .active a, .mainMenu .firstActive a, .mainMenu .lastActive a {
    64. background-image: url("../images/bynate/mainMenuActive.png") !important;
    65. background-position: center bottom;
    66. background-repeat: no-repeat;
    67. }
    68. .mainMenu a:hover,.active a:hover {
    69. background:transparent url(../images/bynate/mainMenuActive.png) scroll 0 0;
    70. background-position: center bottom;
    71. background-repeat: no-repeat;
    72. }
    73. .mainMenu a {
    74. border: 0px;
    75. padding-bottom: 6px;
    76. padding-top: 15px;
    77. padding-left: 15px;
    78. padding-right: 15px;
    79. }
    80. #main {
    81. width: 950px;
    82. }
    83. #mainContainer {
    84. margin-top: 57px;
    85. padding: 0px;
    86. padding-left: 0px;
    87. padding-right: -2px;
    88. width: 1040px;
    89. margin-left: auto;
    90. margin-right: auto;
    91. background-image:url("../images/bynate/main.png");
    92. background-repeat: repeat-y;
    93. }
    94. .containerHead .containerIcon {
    95. float: right;
    96. }
    97. .containerHead .containerContent {
    98. margin-left: 10px;
    99. }
    100. .infoBox .container-1, .infoBox .container-2 {
    101. background: #e5e5e5;
    102. }
    103. .messageRight, .messageFramedRight {
    104. background : transparent url(../images/bynate/message.png) repeat-x;
    105. background-color : #cccccc;
    106. background-position: top right;
    107. }
    108. .messageLeft, .messageFramedLeft {
    109. background : transparent url(../images/bynate/message.png) repeat-x;
    110. background-color : #cccccc;
    111. background-position: top left;
    112. }
    113. #footer{
    114. border: 0px;
    115. background-image:url("../images/bynate/footer.png");
    116. background-position: left top;
    117. background-repeat: no-repeat;
    118. width:1045px;
    119. height: 70px;
    120. }
    121. .footerMenu ul {
    122. padding-left: 35px;
    123. color: #fff;
    124. }
    125. .footerOptions ul {
    126. padding-right: 35px;
    127. color: #fff;
    128. }
    129. .largeButtons a }
    130. line-height: 1;
    131. background-image: url("../images/bynate/largeButtons.png");
    132. background-position: right 0;
    133. background-repeat: no-repeat;
    134. padding: 0 7px 0 0;
    135. }
    136. .largeButtons a img {
    137. margin-top: 5px;
    138. margin-left: 7px;
    139. position: absolute;
    140. }
    141. .largeButtons a span }
    142. background-image: url("../images/bynate/largeButtons.png");
    143. background-position: left 1;
    144. background-repeat: no-repeat;
    145. padding: 9px 3px 0 36px;
    146. display: block;
    147. height: 25px;
    148. cursor: pointer;
    149. text-shadow: 0 -1px 0 #000;
    150. }
    151. .largeButtons a:hover {
    152. background-position: right -86px;
    153. }
    154. .largeButtons a:hover span {
    155. text-shadow: 0 -1px 0 #000;
    156. background-position: left -86px;
    157. }
    Alles anzeigen

  • Sofern deine Java-Compiler Implementation das so akzeptiert, macht es keinen Unterschied.
    Allerdings solltest du bedenken, dass <zahl>f (z.B. 1000.2f) eine Float-Zahl ist und ein sehr genauer Compiler bei einem double einen Fehler - oder Warning - erzeugt.
    Für doubles gibt es die Syntax <zahl>d
    DMA @ Twitter: hier
    C & JAVA Videotutorials auf DevCornerNow

    Programmieraufträge & kalkulationen per PN.
    SA:MP Egal ob Fehlerreparatur oder Scriptteile, beides wird erstellt. (Auch Nischen wie SQLite können bedient werden. ;-))
    sonstige Sprachen:
    • C
    • C++
    • C#
    • D
    • PAWN
    • JavaScript (HTML5)
    • PHP
    • Perl
    • SQL
    Assembler:
    • 6502
    • x86
    • IA64
    • PowerPC

    Momentan
    • Z-C (programming language)
    • CGI-PAWN (pawn for webprogramming)


  • In Welcher Programiersprache?
    Bei Visual.NET Applicationen gehst du auf Projekt Eigenschaften und dann solltest du das schon shene.
    Momentane Proekte:

    Online Wettermange System [1.0] RELASED
    Stats Script 1.1 RELASED
    WBB_Stats | Spieler Stats (Geld,Bank,etc) mit WBB Verdinden Open-BETA VERSION


    Ideen für ein Filterscript ?Schreib mir doch eine PM und ich setze es um,wenn ich es für interressant genug halte