Beiträge von Fabi.StaR

    Wie schreibe ich denn befehl /materialien get [anzahl maximal 10] umd die Pakete zu kaufen , und denn befehl /materialien deliver um die Paket anzahl auf der Baustelle gehgen Mats zu tauchen 10 = 500 mats.


    Bitte helft mir

    Wie kann mna z.b wenn man ein auto gekauft hat und willl es wieder verkaufen wie mach ich das im Sciript das Der spieler dann aus der daten bank tabele gelöscht wird?

    Es geht net er taucht einfach net auf hir der code:



    new Text:Copyright;


    public OnGameModeInit()
    {
    Copyright = TextDrawCreate(515 ,448 , " ");
    TextDrawFont(Copyright , 1);
    TextDrawLetterSize(Copyright , 0.6, 4.2);
    TextDrawColor(Copyright , 0xff0000FF);
    TextDrawSetOutline(Copyright , false);
    TextDrawSetProportional(Copyright , true);
    TextDrawSetShadow(Copyright , 1);
    return 1;
    }


    public OnPlayerUpdate(playerid)
    {
    if(IsPlayerInArea(playerid,1052.4753,-1727.8063,1124.0238,-1816.8523))
    {
    new str[128];
    format(str,sizeof(str),"No-DM-Zone");
    TextDrawSetString(Copyright,str);
    TextDrawShowForPlayer(playerid,Copyright);
    }
    else
    {
    TextDrawHideForPlayer(playerid,Copyright);
    }
    return 1;
    }


    IsPlayerInArea(playerid, Float:MinX, Float:MinY, Float:MaxX, Float:MaxY)
    {
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    if(X >= MinX && X <= MaxX && Y >= MinY && Y <= MaxY)
    {
    return 1;
    }
    return 0;
    }

    Wie kann man speichern das wenn man ein Fahrzeug gemietet hat der besitzer der Fahrzeuges ist??? und wenn man aussteigt und denn Motor aus macht und dann ein andere Spieler einsteigt und wie /rentcar machen steht da Dieses Fahrzeug wurde schon vermietet und wenn man selber einsteigt das man nicht noch mal das fahrzeug mieten muss .


    Bitte um hilfe.


    mfg. Fabi.StaR

    Wird net angezeig :(


    ihr die codes:


    new Text:Copyright;
    forward NoDmZoNe();


    public OnGameModeInit()
    {
    SetTimer("NoDmZoNe",1000,1);
    Copyright = TextDrawCreate(515 ,448 , "NoDm-Zone");
    TextDrawFont(Copyright , 1);
    TextDrawLetterSize(Copyright , 0.6, 4.2);
    TextDrawColor(Copyright , 0xff0000FF);
    TextDrawSetOutline(Copyright , false);
    TextDrawSetProportional(Copyright , true);
    TextDrawSetShadow(Copyright , 1);
    return 1;
    }


    public NoDmZoNe()
    {
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    if(IsPlayerInArea(i,1052.4753,-1727.8063,1124.0238,-1816.8523))
    {
    TextDrawShowForPlayer(i,Copyright);
    }
    else
    {
    TextDrawHideForPlayer(i,Copyright);
    }
    }
    }


    IsPlayerInArea(playerid, Float:MinX, Float:MinY, Float:MaxX, Float:MaxY)
    {
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    if(X >= MinX && X <= MaxX && Y >= MinY && Y <= MaxY)
    {
    return 1;
    }
    return 0;
    }

    hab ich :


    public NoDmZoNe(playerid)
    {
    for(new i=0; i<GetMaxPlayers(); i++)
    {
    if(IsPlayerInArea(i,1052.4753,-1727.8063,1124.0238,-1816.8523))
    {
    TextDrawShowForPlayer(i,NoDM);
    return 1;
    }
    else
    {
    TextDrawHideForPlayer(i,NoDM);
    return 1;
    }
    }
    return 1;
    }

    bekomme diesen error:


    PHP
    C:\Users\Fabian\Desktop\Mein Server\gamemodes\NoDM TEST.pwn(38) : error 017: undefined symbol "IsPlayerInArea"
    Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    
    
    
    1 Error.
    PHP
    [22/09/2012 21:11:20] *** Streamer Plugin: Obsolete or invalid native "Streamer_RegisterInterface" found (script needs to be recompiled with the latest include file)
    [22/09/2012 21:11:20] *** Streamer Plugin: Obsolete or invalid native "Streamer_AddPlayer" found (script needs to be recompiled with the latest include file)
    [22/09/2012 21:11:20] *** Streamer Plugin: Obsolete or invalid native "Streamer_RemovePlayer" found (script needs to be recompiled with the latest include file)
    [22/09/2012 21:11:20] *** Streamer Plugin: Obsolete or invalid native "Streamer_VerifyPickup" found (script needs to be recompiled with the latest include file)
    [22/09/2012 21:11:20] *** Streamer Plugin: Obsolete or invalid native "Streamer_VerifyCheckpoint" found (script needs to be recompiled with the latest include file)
    [22/09/2012 21:11:20] *** Streamer Plugin: Include file version (unknown version) does not match plugin version (0x26105) (script needs to be recompiled with the latest include file)



    Helft mir bittee

    PHP
    [22/09/2012 20:20:10] *** Streamer Plugin: Obsolete or invalid native "Streamer_RegisterInterface" found (script needs to be recompiled with the latest include file)
    [22/09/2012 20:20:10] *** Streamer Plugin: Obsolete or invalid native "Streamer_AddPlayer" found (script needs to be recompiled with the latest include file)
    [22/09/2012 20:20:10] *** Streamer Plugin: Obsolete or invalid native "Streamer_RemovePlayer" found (script needs to be recompiled with the latest include file)
    [22/09/2012 20:20:10] *** Streamer Plugin: Obsolete or invalid native "Streamer_VerifyPickup" found (script needs to be recompiled with the latest include file)
    [22/09/2012 20:20:10] *** Streamer Plugin: Obsolete or invalid native "Streamer_VerifyCheckpoint" found (script needs to be recompiled with the latest include file)
    [22/09/2012 20:20:10] *** Streamer Plugin: Include file version (unknown version) does not match plugin version (0x26105) (script needs to be recompiled with the latest include file)


    was das?