Hilfe beim mapandreas.inc

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
  • Hi bekomm errors wenn ich die inc compilen will C:\Users\Paul\Desktop\Reallife Server\pawno\include\mapandreas.pwn(12) : error 070: rational number support was not enabled
    C:\Users\Paul\Desktop\Reallife Server\pawno\include\mapandreas.pwn(34) : error 013: no entry point (no public functions)
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.

    und der code hier
    /*
    SA-MP MapAndreas Include
    Copyright © 2011-2012 RyDeR`
    */


    #if defined _MapAndreas_Included
    #endinput
    #endif


    #define _MapAndreas_Included


    stock Float: GetPointZPos(const Float: fX, const Float: fY, &Float: fZ = 0.0) {
    if(!((-3000.0 < fX < 3000.0) && (-3000.0 < fY < 3000.0))) {
    return 0.0;
    }
    static
    File: s_hMap
    ;
    if(!s_hMap) {
    s_hMap = fopen("SAfull.hmap", io_read);


    if(!s_hMap) {
    return 0.0;
    }
    }
    new
    afZ[1]
    ;
    fseek(s_hMap, ((6000 * (-floatround(fY, floatround_tozero) + 3000) + (floatround(fX, floatround_tozero) + 3000)) << 1));
    fblockread(s_hMap, afZ);


    return (fZ = ((afZ[0] >>> 16) * 0.01));
    }
    wäre nicht schlecht wenn mir einer hilft
    THX in vorraus :thumbup:

  • Hallo


    Ich verweise auf diesen Link: Object Streamer


    Includedatein werden beim Compileieren einer .pwn eingebunden und dann zu P-Code compiliert. Der SA-MP Server verwendet dann diesen P-Code mittels einer JIT Compilierung. Für dich heisst das


    .pwn = Wird compiliert
    .inc wird includiert --> #include <...>


    Gruss