Waffentruck BUG

  • Hallo Community!
    Bräuchte mal einmal Hilfe bei diesem Error :

    wdealer.lua:36:bad argument #1 to 'abs' (number expected, got nil)

    der error erscheint wenn man den waffentruck beladen möchte!

    hier ist die betroffene Zeile in dem Script:

    Zeile 36:

    Lua
    local schlagringe, baseball, knife, shovels, pistol, sdpistol, pistolammo, eagle, eagleammo, shotgun, shotgunammo, mp, mpammo, ak, akammo, m, mammo, gewehr, gewehrammo, sgewehr, sgewehrammo, rakwerfer, rak, spezgun = math.abs(schlagringe), math.abs(baseball), math.abs(knife), math.abs(shovels), math.abs(pistol), math.abs(sdpistol), math.abs(pistolammo), math.abs(eagle), math.abs(eagleammo), math.abs(shotgun), math.abs(shotgunammo), math.abs(mp), math.abs(mpammo), math.abs(ak), math.abs(akammo), math.abs(m), math.abs(mammo), math.abs(gewehr), math.abs(gewehrammo), math.abs(sgewehr), math.abs(sgewehrammo), math.abs(rakwerfer), math.abs(rak), math.abs(spezgun)

    Zeile 37:

    Lua
    local preis = math.abs(schlagringe)*schlagringe_price + math.abs(baseball)*baseball_price + math.abs(knife)*knife_price + math.abs(shovels)*shovels_price + math.abs(pistol)*pistol_price + math.abs(sdpistol)*sdpistol_price + math.abs(pistolammo)*pistolammo_price + math.abs(eagle)*eagle_price + math.abs(eagleammo)*eagleammo_price + math.abs(shotgun)*shotgun_price + math.abs(shotgunammo)*shotgunammo_price + mp*mp_price + mpammo*mpammo_price + ak*ak_price + akammo*akammo_price + m*m_price + mammo*mammo_price + gewehr*gewehr_price + gewehrammo*gewehrammo_price + sgewehr*sgewehr_price + sgewehrammo*sgewehrammo_price + math.abs(rakwerfer)*rakwerfer_price + math.abs(rak)*rak_price + math.abs(spezgun)*spezgun_price


    es wäre sehr nett wenn man mir helfen könnte Vielen Dank im Vorraus
    Raxxtor

  • Dieses Thema enthält 2 weitere Beiträge, die nur für registrierte Benutzer sichtbar sind, bitte registrieren Sie sich oder melden Sie sich an um diese lesen zu können.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!