Problem mit Tachosystem

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 Leute,


    ich wollte fragen warum bei mir diese warnings kommen?


    Teil aus dem Script:


    OnPlayerEnterVehicle(playerid, vehicleid, ispassenger){ if(GetVehicleModel(vehicleid) == 509 || GetVehicleModel(vehicleid) == 481 || GetVehicleModel(vehicleid) == 510) { GetVehicleParamsEx(vehicleid); SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_ON); } return 1;}
    OnVehicleSpawn(vehicleid){ GetVehicleParamsEx(vehicleid); SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF); Motor[vehicleid] = false; return 1;}


    Warinings:



    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(375) : warning 202: number of arguments does not match definition
    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(375) : warning 202: number of arguments does not match definition
    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(375) : warning 202: number of arguments does not match definition
    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(375) : warning 202: number of arguments does not match definition
    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(375) : warning 202: number of arguments does not match definition
    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(375) : warning 202: number of arguments does not match definition
    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(375) : warning 202: number of arguments does not match definition
    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(376) : warning 202: number of arguments does not match definition
    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(376) : warning 202: number of arguments does not match definition
    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(376) : warning 202: number of arguments does not match definition
    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(376) : warning 202: number of arguments does not match definition
    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(376) : warning 202: number of arguments does not match definition
    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(376) : warning 202: number of arguments does not match definition
    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(383) : warning 202: number of arguments does not match definition
    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(383) : warning 202: number of arguments does not match definition
    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(383) : warning 202: number of arguments does not match definition
    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(383) : warning 202: number of arguments does not match definition
    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(383) : warning 202: number of arguments does not match definition
    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(383) : warning 202: number of arguments does not match definition
    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(383) : warning 202: number of arguments does not match definition
    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(384) : warning 202: number of arguments does not match definition
    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(384) : warning 202: number of arguments does not match definition
    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(384) : warning 202: number of arguments does not match definition
    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(384) : warning 202: number of arguments does not match definition
    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(384) : warning 202: number of arguments does not match definition
    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(384) : warning 202: number of arguments does not match definition
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    26 Warnings.

    :) SWAGETTI & YOLONAISE!

  • machs mal lieber so


    GetVehicleParamsEx(i,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(i,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);


    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(375) : error 017: undefined symbol "i"
    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(376) : error 017: undefined symbol "i"
    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(383) : error 017: undefined symbol "i"
    C:\Users\Familie\Desktop\German Deathmatch\filterscripts\Tacho.pwn(384) : error 017: undefined symbol "i"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    4 Errors.

    :) SWAGETTI & YOLONAISE!


  • for (new i=0; i< MAX_VEHICLES; i++)
    {
    GetVehicleParamsEx(i,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(i,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    }


    kannst natürlich auch playerid einsetzen
    das ist jetzt bei mir nur so das jedes auto beim spawn den motor ausgeschaltet hat