GodfatherScript

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Hallo hier Sampler ;)


    Ich hab mal eine Frage undzwar ob einer von euch mal bitte über mein Script schauen könnte
    ich weiß sowas ist "Dreist" jeddoch weiß ich einfach nicht weiter.


    Ich habe ein ca. 57.000Zeilen Script von einem Freund übernommen.
    Leider sind dabei um die 990 Warnings rumgekommen :facepalm:


    Nun niemand muss mir helfen könnte ich auch verstehen.
    Aber ich würde gerne mit weniger Warnings Spielen.


    Viele werden jetzt auch sagen: "Schmeiß es aus dem Fenster ect."
    Aber nein ich möchte damit Spielen und dran arbeiten :D




    Wer mir helfen würde... soll mir einfach ne PN schreiben das reicht.


    p.s. weiß net wohin damit hoffe es ist richtig.


    mfg LandWirt

    Einmal editiert, zuletzt von LandWirt ()

  • Kann mir vorstellen das das bei 1200 Warnings der Objectestreamer ist, der nicht richtig läuft.


    Sind alle Warnings gleich und wenn ja wie lautet er? :D

    Glaub keinem, der Dir sagt, dass Du nichts verändern kannst.
    Die, die das behaupten, haben nur vor der Veränderung Angst.
    Es sind dieselben, die erklären, es sei gut so, wie es ist.
    Und wenn Du etwas ändern willst, dann bist Du automatisch Terrorist (Die Ärzte - Deine Schuld)

  • Och Mensch!
    Identatiiofehler kannste ja selber übernehmen!
    Tagmistach sind codes-line die sinnlos sind ,also z.b x,y,z Koords. anstatt x,z ist einfach zu beheben
    Wenn du ein 60k Script benutzt und du hast warnings ,darfst du das doch nicht aufgeben!

  • loose identation = Identationsfehler ,wenn du scripten lernen willst ,musst du logisch denken ,und lesen!!!
    tag mistach = Sache (wie Schleife)hat einen falschen Wert wie z.B eine Sache braucht 1-2-3 Ziffern ,aber deine hat nur 1-2 Ziffern!

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • (52852) : warning 219: local variable "string" shadows a variable at a preceding level
    (52860) : warning 219: local variable "string" shadows a variable at a preceding level
    (52868) : warning 219: local variable "string" shadows a variable at a preceding level
    (52877) : warning 219: local variable "string" shadows a variable at a preceding level
    (52979) : warning 219: local variable "string" shadows a variable at a preceding level
    (52995) : warning 219: local variable "string" shadows a variable at a preceding level
    (53002) : warning 219: local variable "string" shadows a variable at a preceding level
    (53076) : warning 219: local variable "string" shadows a variable at a preceding level
    (53092) : warning 219: local variable "string" shadows a variable at a preceding level
    (53099) : warning 219: local variable "string" shadows a variable at a preceding level
    (53173) : warning 219: local variable "string" shadows a variable at a preceding level
    (53189) : warning 219: local variable "string" shadows a variable at a preceding level
    (53196) : warning 219: local variable "string" shadows a variable at a preceding level
    (53270) : warning 219: local variable "string" shadows a variable at a preceding level
    (53286) : warning 219: local variable "string" shadows a variable at a preceding level
    (53293) : warning 219: local variable "string" shadows a variable at a preceding level
    (53367) : warning 219: local variable "string" shadows a variable at a preceding level
    (53383) : warning 219: local variable "string" shadows a variable at a preceding level
    (53390) : warning 219: local variable "string" shadows a variable at a preceding level
    (53464) : warning 219: local variable "string" shadows a variable at a preceding level
    (53480) : warning 219: local variable "string" shadows a variable at a preceding level
    (53487) : warning 219: local variable "string" shadows a variable at a preceding level
    (53558) : warning 219: local variable "string" shadows a variable at a preceding level
    (53574) : warning 219: local variable "string" shadows a variable at a preceding level
    (53581) : warning 219: local variable "string" shadows a variable at a preceding level
    (53651) : warning 219: local variable "string" shadows a variable at a preceding level
    (53666) : warning 219: local variable "string" shadows a variable at a preceding level
    (53673) : warning 219: local variable "string" shadows a variable at a preceding level
    (53745) : warning 219: local variable "string" shadows a variable at a preceding level
    (53761) : warning 219: local variable "string" shadows a variable at a preceding level
    (53768) : warning 219: local variable "string" shadows a variable at a preceding level
    (52850) : warning 204: symbol is assigned a value that is never used: "CurrentMenu"
    (52850 -- 53834) : warning 235: public function lacks forward declaration (symbol "intTimer")
    (53920) : warning 202: number of arguments does not match definition
    (54329) : warning 209: function "intTimer" should return a value
    (54351) : warning 235: public function lacks forward declaration (symbol "Closecnna")
    (54464) : warning 235: public function lacks forward declaration (symbol "TotTimer")
    (54962) : warning 217: loose indentation
    (55106) : warning 235: public function lacks forward declaration (symbol "ReportReset")
    (55715) : warning 219: local variable "string" shadows a variable at a preceding level
    (55717) : warning 219: local variable "sendername" shadows a variable at a preceding level
    (55790) : warning 219: local variable "string" shadows a variable at a preceding level
    (55808) : warning 219: local variable "string" shadows a variable at a preceding level
    (55826) : warning 219: local variable "string" shadows a variable at a preceding level
    (55844) : warning 219: local variable "string" shadows a variable at a preceding level
    (55862) : warning 219: local variable "string" shadows a variable at a preceding level
    (56094) : warning 219: local variable "string" shadows a variable at a preceding level
    (56132) : warning 219: local variable "string" shadows a variable at a preceding level
    (56164) : warning 219: local variable "string" shadows a variable at a preceding level
    (56245) : warning 219: local variable "string" shadows a variable at a preceding level
    (56246) : warning 219: local variable "sendername" shadows a variable at a preceding level
    (56353) : warning 219: local variable "i" shadows a variable at a preceding level
    (56495) : warning 209: function "waffenskill" should return a value
    (56571) : warning 235: public function lacks forward declaration (symbol "OnBFXObjectStreamIn")
    (56583) : warning 217: loose indentation
    (56782) : warning 209: function "landungls" should return a value
    (56998) : warning 219: local variable "lights" shadows a variable at a preceding level
    (57008) : warning 219: local variable "lights" shadows a variable at a preceding level
    (57018) : warning 219: local variable "lights" shadows a variable at a preceding level
    (57028) : warning 219: local variable "lights" shadows a variable at a preceding level
    (57038) : warning 219: local variable "lights" shadows a variable at a preceding level
    (57048) : warning 219: local variable "lights" shadows a variable at a preceding level
    (57058) : warning 219: local variable "lights" shadows a variable at a preceding level
    (57068) : warning 219: local variable "lights" shadows a variable at a preceding level
    (57705) : warning 203: symbol is never used: "ADACDrivers"
    (15439) : warning 204: symbol is assigned a value that is never used: "AfterDeathSkin"
    (15439 -- 57705) : warning 203: symbol is never used: "Ba"
    (15439 -- 57705) : warning 203: symbol is never used: "Bruecke"
    (15439 -- 57705) : warning 203: symbol is never used: "CopCar"
    (15439 -- 57705) : warning 203: symbol is never used: "CowTime"
    (15439 -- 57705) : warning 203: symbol is never used: "DustmanCall"
    (15439 -- 57705) : warning 203: symbol is never used: "FillUpGas"
    (15439 -- 57705) : warning 203: symbol is never used: "GetPlayerDistanceToPoint"
    (22623) : warning 204: symbol is assigned a value that is never used: "HackingAllLSPD"
    (22623 -- 57705) : warning 203: symbol is never used: "IsPlayerInCircle"
    (22623 -- 57705) : warning 203: symbol is never used: "JavPos"
    (22623 -- 57705) : warning 203: symbol is never used: "Javelin"
    (22623 -- 57705) : warning 203: symbol is never used: "MainGate1"
    (22623 -- 57705) : warning 203: symbol is never used: "MainGate2"
    (22623 -- 57705) : warning 203: symbol is never used: "OldPos"
    (22623 -- 57705) : warning 203: symbol is never used: "PetrolPrice"
    (22623 -- 57705) : warning 203: symbol is never used: "PetrolPumps"
    (22623 -- 57705) : warning 203: symbol is never used: "PlayerDust"
    (22623 -- 57705) : warning 203: symbol is never used: "PlayerInterior"
    (22623 -- 57705) : warning 203: symbol is never used: "PlayerXXX"
    (22623 -- 57705) : warning 203: symbol is never used: "PlayerYYY"
    (22623 -- 57705) : warning 203: symbol is never used: "PlayerZZZ"
    (22623 -- 57705) : warning 203: symbol is never used: "Pos"
    (22623 -- 57705) : warning 203: symbol is never used: "Pot"
    (22623 -- 57705) : warning 203: symbol is never used: "STD1"
    (22623 -- 57705) : warning 203: symbol is never used: "STD2"
    (22623 -- 57705) : warning 203: symbol is never used: "STD3"
    (22623 -- 57705) : warning 203: symbol is never used: "STD4"
    (22623 -- 57705) : warning 203: symbol is never used: "SavePlayerPos"
    (22623 -- 57705) : warning 203: symbol is never used: "SavedPOSx"
    (22623 -- 57705) : warning 203: symbol is never used: "SavedPOSy"
    (22623 -- 57705) : warning 203: symbol is never used: "SavedPOSz"
    (22623 -- 57705) : warning 203: symbol is never used: "Schleuse1"
    (22623 -- 57705) : warning 203: symbol is never used: "Schleuse2"
    (22623 -- 57705) : warning 203: symbol is never used: "SpawnChange"
    (22623 -- 57705) : warning 203: symbol is never used: "Speed"
    (18944) : warning 204: symbol is assigned a value that is never used: "Stunttele"
    (18944 -- 57705) : warning 203: symbol is never used: "Truckcar"
    (18944 -- 57705) : warning 203: symbol is never used: "TruckerFillType"
    (18944 -- 57705) : warning 203: symbol is never used: "UhrenShop"
    (18944 -- 57705) : warning 203: symbol is never used: "WetterRandom"
    (18944 -- 57705) : warning 203: symbol is never used: "Zentrale1"
    (18944 -- 57705) : warning 203: symbol is never used: "Zentrale2"
    (18944 -- 57705) : warning 203: symbol is never used: "alh1"
    (18944 -- 57705) : warning 203: symbol is never used: "alh2"
    (18946) : warning 204: symbol is assigned a value that is never used: "alka51"
    (18945) : warning 204: symbol is assigned a value that is never used: "area51"
    (18945 -- 57705) : warning 203: symbol is never used: "arecloseto"
    (18945 -- 57705) : warning 203: symbol is never used: "bootzone"
    (18945 -- 57705) : warning 203: symbol is never used: "bs"
    (18945 -- 57705) : warning 203: symbol is never used: "bsnausgang"
    (18945 -- 57705) : warning 203: symbol is never used: "bsnls1"
    (18945 -- 57705) : warning 203: symbol is never used: "bso"
    (16588) : warning 204: symbol is assigned a value that is never used: "buslinieeins"
    (16588 -- 57705) : warning 203: symbol is never used: "checkms"
    (16588 -- 57705) : warning 203: symbol is never used: "checkmssparend"
    (16588 -- 57705) : warning 203: symbol is never used: "countgelegte"
    (16588 -- 57705) : warning 203: symbol is never used: "dock"
    (18933) : warning 204: symbol is assigned a value that is never used: "drivein"
    (15543) : warning 204: symbol is assigned a value that is never used: "driveint"
    (15543 -- 57705) : warning 203: symbol is never used: "emdtrace"
    (15543 -- 57705) : warning 203: symbol is never used: "emdtrace_x"
    (15543 -- 57705) : warning 203: symbol is never used: "emdtrace_y"
    (15543 -- 57705) : warning 203: symbol is never used: "emdtrace_z"
    (15543 -- 57705) : warning 203: symbol is never used: "flying"
    (15543 -- 57705) : warning 203: symbol is never used: "found"
    (15543 -- 57705) : warning 203: symbol is never used: "gGasStationLocations"
    (15543 -- 57705) : warning 203: symbol is never used: "gMedPlayerSpawns"
    (15543 -- 57705) : warning 203: symbol is never used: "gates1"
    (15543 -- 57705) : warning 203: symbol is never used: "gates2"
    (15543 -- 57705) : warning 203: symbol is never used: "housesale"
    (15543 -- 57705) : warning 203: symbol is never used: "housesaled"
    (15543 -- 57705) : warning 203: symbol is never used: "hspeicher"
    (15543 -- 57705) : warning 203: symbol is never used: "intrate"
    (15543 -- 57705) : warning 203: symbol is never used: "kosten"
    (18948) : warning 204: symbol is assigned a value that is never used: "lspdag"
    (18949) : warning 204: symbol is assigned a value that is never used: "lspdag2"
    (18949 -- 57705) : warning 203: symbol is never used: "lvp"
    (18949 -- 57705) : warning 203: symbol is never used: "moeglichradius"
    (18949 -- 57705) : warning 203: symbol is never used: "mph"
    (18949 -- 57705) : warning 203: symbol is never used: "objectcreated"
    (18949 -- 57705) : warning 203: symbol is never used: "output"
    (18949 -- 57705) : warning 203: symbol is never used: "pb"
    (52150) : warning 204: symbol is assigned a value that is never used: "pdtrace"
    (52150) : warning 204: symbol is assigned a value that is never used: "pdtrace_x"
    (52150) : warning 204: symbol is assigned a value that is never used: "pdtrace_y"
    (52150) : warning 204: symbol is assigned a value that is never used: "pdtrace_z"
    (52150 -- 57705) : warning 203: symbol is never used: "placedx"
    (52150 -- 57705) : warning 203: symbol is never used: "placedy"
    (52150 -- 57705) : warning 203: symbol is never used: "placedz"
    (52150 -- 57705) : warning 203: symbol is never used: "playershowstatus"
    (52150 -- 57705) : warning 203: symbol is never used: "playerstatbackground"
    (52150 -- 57705) : warning 203: symbol is never used: "po1"
    (52150 -- 57705) : warning 203: symbol is never used: "po2"
    (52150 -- 57705) : warning 203: symbol is never used: "potammount2"
    (52150 -- 57705) : warning 203: symbol is never used: "ruckelms"
    (52150 -- 57705) : warning 203: symbol is never used: "schulung"
    (52150 -- 57705) : warning 203: symbol is never used: "spawncar_gas"
    (52150 -- 57705) : warning 203: symbol is never used: "testing"
    (52150 -- 57705) : warning 203: symbol is never used: "timestr"
    (52150 -- 57705) : warning 203: symbol is never used: "txtcost"
    (18884) : warning 204: symbol is assigned a value that is never used: "uninutten"
    (18884 -- 57705) : warning 203: symbol is never used: "wantedcheck"
    (52642) : warning 204: symbol is assigned a value that is never used: "whatever"
    (52642 -- 57705) : warning 203: symbol is never used: "zug1"


    Das sind jetzt mal so die die oft vorkommen.
    Dennoch sind die
    loose Indentition und tagmistage die meisten Warnings.

  • (52852) : warning 219: local variable "string" shadows a variable at a preceding level(52860) : warning 219: local variable "string" shadows a variable at a preceding level
    (52868) : warning 219: local variable "string" shadows a variable at a preceding level
    (52877) : warning 219: local variable "string" shadows a variable at a preceding level
    (52979) : warning 219: local variable "string" shadows a variable at a preceding level
    (52995) : warning 219: local variable "string" shadows a variable at a preceding level
    (53002) : warning 219: local variable "string" shadows a variable at a preceding level
    (53076) : warning 219: local variable "string" shadows a variable at a preceding level
    (53092) : warning 219: local variable "string" shadows a variable at a preceding level
    (53099) : warning 219: local variable "string" shadows a variable at a preceding level
    (53173) : warning 219: local variable "string" shadows a variable at a preceding level
    (53189) : warning 219: local variable "string" shadows a variable at a preceding level
    (53196) : warning 219: local variable "string" shadows a variable at a preceding level
    (53270) : warning 219: local variable "string" shadows a variable at a preceding level
    (53286) : warning 219: local variable "string" shadows a variable at a preceding level
    (53293) : warning 219: local variable "string" shadows a variable at a preceding level
    (53367) : warning 219: local variable "string" shadows a variable at a preceding level
    (53383) : warning 219: local variable "string" shadows a variable at a preceding level
    (53390) : warning 219: local variable "string" shadows a variable at a preceding level
    (53464) : warning 219: local variable "string" shadows a variable at a preceding level
    (53480) : warning 219: local variable "string" shadows a variable at a preceding level
    (53487) : warning 219: local variable "string" shadows a variable at a preceding level
    (53558) : warning 219: local variable "string" shadows a variable at a preceding level
    (53574) : warning 219: local variable "string" shadows a variable at a preceding level
    (53581) : warning 219: local variable "string" shadows a variable at a preceding level
    (53651) : warning 219: local variable "string" shadows a variable at a preceding level
    (53666) : warning 219: local variable "string" shadows a variable at a preceding level
    (53673) : warning 219: local variable "string" shadows a variable at a preceding level
    (53745) : warning 219: local variable "string" shadows a variable at a preceding level
    (53761) : warning 219: local variable "string" shadows a variable at a preceding level (53768) : warning 219: local variable "string" shadows a variable at a preceding level


    Das bedeutet das du mehr mals string defenierst.


    Also


    OnPlayerCommandText...
    new string ist dann da


    und dann noch mal im Befehl


    Naja das kommt davon wenn man immer Copy & Past macht


  • 1. Srry für DoppelPost


    2. Wie kann ich das beheben?


    mfg LandWirt