Warnungen

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,


    Ich bekomme diese Warnungen.
    F:\Programme\Spiele\GTA San Andreas\Server\Server\Role Play City Versuch\pawno\include\morphinc.inc(3) : warning 219: local variable "x2" shadows a variable at a preceding level
    F:\Programme\Spiele\GTA San Andreas\Server\Server\Role Play City Versuch\pawno\include\morphinc.inc(3) : warning 219: local variable "y2" shadows a variable at a preceding level
    F:\Programme\Spiele\GTA San Andreas\Server\Server\Role Play City Versuch\pawno\include\morphinc.inc(3) : warning 219: local variable "z2" shadows a variable at a preceding level
    F:\Programme\Spiele\GTA San Andreas\Server\Server\Role Play City Versuch\gamemodes\rpc.pwn(831) : warning 219: local variable "x2" shadows a variable at a preceding level
    F:\Programme\Spiele\GTA San Andreas\Server\Server\Role Play City Versuch\gamemodes\rpc.pwn(831) : warning 219: local variable "y2" shadows a variable at a preceding level
    F:\Programme\Spiele\GTA San Andreas\Server\Server\Role Play City Versuch\gamemodes\rpc.pwn(831) : warning 219: local variable "z2" shadows a variable at a preceding level
    F:\Programme\Spiele\GTA San Andreas\Server\Server\Role Play City Versuch\gamemodes\rpc.pwn(40065) : warning 219: local variable "x2" shadows a variable at a preceding level
    F:\Programme\Spiele\GTA San Andreas\Server\Server\Role Play City Versuch\gamemodes\rpc.pwn(40065) : warning 219: local variable "y2" shadows a variable at a preceding level
    F:\Programme\Spiele\GTA San Andreas\Server\Server\Role Play City Versuch\gamemodes\rpc.pwn(40065) : warning 219: local variable "z2" shadows a variable at a preceding level
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


    Header size: 8696 bytes
    Code size: 1685000 bytes
    Data size: 25416132 bytes
    Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
    Total requirements:27126212 bytes


    9 Warnings.
    Diese kommen seit dem ich versuche von MidoStream auf Einsteins Objecte_Streamer umzusteigen. Hier die dazu gehörigen zeilen:
    (3)
    Denver the creator of PEN1.
    Valhalla Gaming Comunity has indeed paid me for this very script you are about to read, where they
    only paid for the systems and parts that were created by me.
    They received this script a few months ago, and their server owner is trying to rip me off.
    Due to this fact + i'm not scripting anymore, i release this script so that everyone can use it.


    Credits to Astro.
    Credits to Tratulla for his 2 .ini Functions.
    Credits to the Fuel System creator on SA-MP forums.
    Credits to Morph for the Name Showing timer.
    Credits to Jony
    Credits to Sc4ut
    Credits to Xilent
    Credits to The_John
    Credits to Bounty
    */
    #include <a_samp>
    #include <core>
    #include <float>
    #include <time>
    #include <file>
    #include <utils>
    #include <morphinc>
    #include <Obj_Streamer>
    #include <MidoStream>


    (831)
    public Float:GetDistanceBetweenPlayers(p1,p2)
    {
    new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
    if(!IsPlayerConnected(p1) || !IsPlayerConnected(p2))
    {
    return -1.00;
    }
    GetPlayerPos(p1,x1,y1,z1);
    GetPlayerPos(p2,x2,y2,z2);
    return floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
    }
    und (40065)
    public Float:GetDistance(playerid, Float:x, Float:y)
    {
    new Float:x2, Float:y2, Float:z2;
    GetPlayerPos(playerid, x2, y2, z2);
    x = x - x2;
    y = y - y2;
    return floatsqroot(x*x+y*y);
    }
    Ich hoffe ihr könnt mir helfen :(
    MFG
    Sascha aka Xilent