AHK | Overlay Problem

  • Hab das jetzt soweit hin bekommen, nur mit dem Standort funktioniert's nicht.
    #IfWinActive, GTA:SA:MP
    #SingleInstance, Force
    #Persistent
    #UseHook
    #NoEnv
    #include ..\..\include\AHK\SAMP_API.ahk
    Gui, Show, x50 y50 h50 w150, Ov
    SetParam("use_window", "1")
    SetParam("window", "GTA:SA:MP")


    HPOV := TextCreate("Arial", 8, true, false, 715, 88, 0xFFFFFFFF, "" GetPlayerHealth(), true, true)
    IDOV := TextCreate("Arial", 8, true, false, 706, 55, 0xFFFFFFFF, "ID: " GetPlayerIDByName("Kai.Ahnung"), true, true)
    DLOV := TextCreate("Arial", 8, true, false, 617, 155, 0xFFFFFFFF, "Car-DL: " GetVehicleHealth(), true, true)
    FPSOV := TextCreate("Arial", 8, true, false, 701, 66, 0xFFFFFFFF, "FPS: " GetFramerate(), true, true)
    GZOV := TextCreate("Arial", 8, true, false, 700, 166, 0xFFFFFFFF, "GZ: " GetZoneName(MyZone), true, true)


    SetTimer, HP, 1000
    SetTimer, ID, 1000
    SetTimer, DL, 1000
    SetTimer, FPS, 1000
    SetTimer, GZ, 1000


    HP:
    TextSetString(HPOV, "" GetPlayerHealth())
    return


    ID:
    TextSetString(IDOV, "ID: " GetPlayerIDByName("Kai.Ahnung"))
    return


    DL:
    TextSetString(DLOV, "Car-DL: " GetVehicleHealth())
    if (GetvehicleHealth() == -1)
    TextSetString(DLOV, "Du bist in keinem Fahrzeug")
    return


    FPS:
    TextSetString(FPSOV, "FPS: " GetFramerate())
    return


    GZ:
    TextSetString(GZOV, "GZ: " GetZoneName(MyZone))
    return


    GuiClose:
    DestroyAllVisual()
    ExitApp
    return

  • in Satz 15 fehlt noch was?
    (15) : ==> Too few parameters passed to function.


    .... habs jetzt hinbekommen.
    GZOV := TextCreate("Arial", 8, true, false, 400, 580, 0xFFFFFFFF, "GZ: " GetZoneName(zoneName, 32), true, true)
    ^^

  • Bei mir wird die API.ahk nicht gefunden. Ich habe dies alles so: