SA-MP Forums Archive
[PEDIDO]INCLUDE - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [PEDIDO]INCLUDE (/showthread.php?tid=261966)



[PEDIDO]INCLUDE - [Dk]TuReTOo - 15.06.2011

AVISO: Usei shearch e nao encontrei.
INCLUDE: xStreamer
Agradeзo


Re: [PEDIDO]INCLUDE - [S]trong - 15.06.2011

Realmente vi que usou o search, achei o link a duas pбginas atrбs.
Link > http://solidfiles.com/d/7EhV/


Re: [PEDIDO]INCLUDE - [Dk]TuReTOo - 15.06.2011

Pois olha que vi, mas eu quero include nao o pulgin e FilterScript do xStream >.<


Re: [PEDIDO]INCLUDE - [S]trong - 15.06.2011

Legal, mas jб olhou dentro do filterscripts? me parece que nгo, pois aparentimente nгo existe include do xStreamer e sу suas natives, elas estгo dentro das filterscripts abra o arquivo e copie as natives para dentro do seu GM e pronto.


Re: [PEDIDO]INCLUDE - [Dk]TuReTOo - 15.06.2011

lolada, copiei tudo do FS para meu gm e da na mesma o erro da include -.-"

Quote:

C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\LR-RP.pwn(49) : fatal error 100: cannot read from file: "xStreamer"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.




Re: [PEDIDO]INCLUDE - [S]trong - 15.06.2011

nem tinha visto, a filterscript й a include, crie uma include com o nome xStreamer e coloque isto dentro
pawn Код:
/*
    xStreamer para adicionar mais objectos
 */


#if defined _xstreamer_included
    #endinput
#endif
#define _xstreamer_included
#pragma library xstreamer

#include <a_samp>

//------------------------------------------------------------------------------

#if !defined OBJECT_TIMER
#define OBJECT_TIMER 200
#endif

//------------------------------------------------------------------------------

native ConnectPlayer(playerid);
native DisconnectPlayer(playerid);
native StreamObjects(playerid,Float:x,Float:y,Float:z,virtualworld,interior);
native UpdateMovingObjects();

native xStreamer_Filterscript();

//------------------------------------------------------------------------------

forward sampCreatePlayerObject(playerid,modelid,Float:x,Float:y,Float:z,Float:rx,Float:ry,Float:rz);
forward sampDestroyPlayerObject(playerid,objectid);
forward sampMovePlayerObject(playerid, objectid, Float:X, Float:Y, Float:Z, Float:Speed);
forward sampStopPlayerObject(playerid,objectid);

forward xStreamer_Run();

//------------------------------------------------------------------------------

public sampCreatePlayerObject(playerid,modelid,Float:x,Float:y,Float:z,Float:rx,Float:ry,Float:rz)
{
    //printf("CreatePlayerObject(%d,%d,%f,%f,%f,%f,%f,%f)",playerid,modelid,x,y,z,rx,ry,rz);
    return CreatePlayerObject(playerid,modelid,x,y,z,rx,ry,rz);
}

public sampDestroyPlayerObject(playerid,objectid)
{
    //printf("DestroyPlayerObject(%d,%d)",playerid,objectid);
    return DestroyPlayerObject(playerid,objectid);
}

public sampMovePlayerObject(playerid, objectid, Float:X, Float:Y, Float:Z, Float:Speed)
{
    //printf("MovePlayerObject(%d,%d,%f,%f,%f,%f)",playerid, objectid, X, Y, Z, Speed);
    return MovePlayerObject(playerid, objectid, X, Y, Z, Speed);
}

public sampStopPlayerObject(playerid,objectid)
{
    printf("StopPlayerObject(%d,%d)",playerid,objectid);
    return StopPlayerObject(playerid,objectid);
}

public xStreamer_Run()
{
    UpdateMovingObjects();
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            new
                Float:x,
                Float:y,
                Float:z;
            GetPlayerPos(i,x,y,z);
            StreamObjects(i,x,y,z,GetPlayerVirtualWorld(i),GetPlayerInterior(i));
        }
    }
    return 1;
}

public OnFilterScriptInit()
{
    SetTimer("xStreamer_Run",OBJECT_TIMER,1);
    xStreamer_Filterscript();
    return 1;
}

public OnPlayerConnect(playerid)
{
    ConnectPlayer(playerid);
    return 1;
}

public OnPlayerDisconnect(playerid,reason)
{
    DisconnectPlayer(playerid);
    return 1;
}