[ajuda]Urgente
#1

1єusei o Ysi, mas quando chegei ao server os objectos nгo estvam lб, depois fui ver o rstream,
mas nгo percebi muito bem como utilizar, o stream.
E fiz isto:
pawn Код:
#include <a_samp>
#include <streamer>

public OnFilterScriptInit()
{
{
Object_Object();
CreateDynamicObject(8149, -1472.9530029297, -619.67437744141, 16.249464035034, 0.000000, 0.000000, 240.79541015625); //
CreateDynamicObject(8149, -1379.3395996094, -633.03631591797, 16.249464035034, 0.000000, 0.000000, 268.60717773438); //
CreateDynamicObject(8149, -1269.4045410156, -574.73956298828, 16.249464035034, 0.000000, 0.000000, 332.1806640625); //
CreateDynamicObject(8149, -1199.3039550781, -441.96127319336, 16.249464035034, 0.000000, 0.000000, 332.17504882813); //
CreateDynamicObject(8149, -1168.2399902344, -303.45010375977, 16.249464035034, 0.000000, 0.000000, 3.9600830078125); //
CreateDynamicObject(8149, -1176.6396484375, -185.69467163086, 16.249464035034, 0.000000, 0.000000, 3.955078125); //
CreateDynamicObject(8149, -1188.9636230469, -122.91675567627, 16.249464035034, 0.000000, 0.000000, 47.663360595703); //
CreateDynamicObject(8149, -1278.5206298828, -23.345390319824, 16.249464035034, 0.000000, 0.000000, 146.99554443359); //
CreateDynamicObject(8149, -1284.7562255859, -115.78004455566, 16.249464035034, 0.000000, 0.000000, 222.48736572266); //
CreateDynamicObject(8149, -1224.0095214844, -242.72842407227, 16.249464035034, 0.000000, 0.000000, 186.72290039063); //
CreateDynamicObject(8149, -1245.9251708984, -414.5322265625, 16.249464035034, 0.000000, 0.000000, 150.95709228516); //
CreateDynamicObject(8149, -1220.5930175781, -274.8088684082, 16.249464035034, 0.000000, 0.000000, 186.71514892578); //
CreateDynamicObject(8149, -1302.9537353516, -517.27667236328, 16.249464035034, 0.000000, 0.000000, 150.9541015625); //
CreateDynamicObject(8149, -1411.5476074219, -578.64666748047, 16.249464035034, 0.000000, 0.000000, 83.403106689453); //
CreateDynamicObject(8149, -1583.3492431641, -534.93225097656, 16.249464035034, 0.000000, 0.000000, 43.667877197266); //
CreateDynamicObject(8149, -1565.7293701172, -520.67736816406, 16.244981765747, 0.000000, 0.000000, 43.665161132813); //
CreateDynamicObject(8149, -1671.5203857422, -449.55953979492, 16.249464035034, 0.000000, 0.000000, 43.665161132813); //
CreateDynamicObject(8149, -1721.8983154297, -327.66098022461, 16.249464035034, 0.000000, 0.000000, 359.95703125); //
CreateDynamicObject(8149, -1684.0858154297, -190.73899841309, 16.647901535034, 0.000000, 0.000000, 328.16796875); //
CreateDynamicObject(8149, -1618.9927978516, -113.51062774658, 16.249464035034, 0.000000, 0.000000, 316.24658203125); //
CreateDynamicObject(8149, -1515.1849365234, -5.2084732055664, 16.244993209839, 0.000000, 0.000000, 316.24145507813); //
CreateDynamicObject(8149, -1418.4802246094, 95.592826843262, 16.249464035034, 0.000000, 0.000000, 316.24145507813); //
CreateDynamicObject(8149, -1334.4305419922, 182.92753601074, 16.249464035034, 0.000000, 0.000000, 316.24145507813); //
CreateDynamicObject(8342, -1251.4184570313, 243.17251586914, 16.249465942383, 0.000000, 0.000000, 316.29156494141); //
CreateDynamicObject(8342, -1199.7061767578, 167.04116821289, 16.241916656494, 0.000000, 0.000000, 224.90075683594); //
CreateDynamicObject(8342, -1276.6888427734, 163.28210449219, 16.249465942383, 0.000000, 0.000000, 42.121429443359); //
CreateDynamicObject(8149, -1194.1872558594, 71.567245483398, 16.249464035034, 0.000000, 0.000000, 224.85144042969); //
CreateDynamicObject(8149, -1203.2281494141, -3.8033258914948, 16.249464035034, 0.000000, 0.000000, 145.376953125); //
CreateDynamicObject(8149, -1255.7191162109, 13.195604324341, 16.249464035034, 0.000000, 0.000000, 145.37664794922); //
CreateDynamicObject(8263, -1458.7514648438, -570.67193603516, 16.249464035034, 0.000000, 0.000000, 0.000000); //
CreateDynamicObject(8149, -1641.3310546875, -446.96569824219, 16.249464035034, 0.000000, 0.000000, 43.665161132813); //
CreateDynamicObject(8149, -1689.5682373047, -320.89212036133, 16.249464035034, 0.000000, 0.000000, 355.98254394531); //
CreateDynamicObject(8149, -1639.6340332031, -189.66687011719, 16.244993209839, 0.000000, 0.000000, 320.22009277344); //
CreateDynamicObject(8149, -1542.5795898438, -79.914772033691, 16.244993209839, 0.000000, 0.000000, 316.24499511719); //
CreateDynamicObject(8149, -1446.0524902344, 14.567546844482, 16.647901535034, 0.000000, 0.000000, 312.26794433594); //
CreateDynamicObject(8149, -1340.3206787109, 90.923370361328, 16.59135055542, 0.000000, 0.000000, 320.21142578125); //
CreateDynamicObject(8149, -1344.8314208984, 119.61032104492, 16.647901535034, 0.000000, 0.000000, 320.20751953125); //
CreateDynamicObject(8556, -1290.8286132813, 167.70899963379, 18.062931060791, 0.000000, 0.000000, 308.34460449219); //
CreateDynamicObject(981, -1283.1037597656, 188.4573059082, 13.522933959961, 0.000000, 0.000000, 220.92816162109); //
CreateDynamicObject(981, -1273.0572509766, 197.70780944824, 13.61491394043, 0.000000, 0.000000, 220.92407226563); //
CreateDynamicObject(996, -1314.5837402344, 206.35124206543, 13.897192955017, 0.000000, 0.000000, 308.34460449219); //
CreateDynamicObject(996, -1324.2911376953, 199.30369567871, 14.295630455017, 0.000000, 0.000000, 308.34228515625); //
CreateDynamicObject(996, -1311.1219482422, 200.87358093262, 15.136713981628, 0.000000, 0.000000, 220.92553710938); //
CreateDynamicObject(997, -1319.4708251953, 197.9605255127, 13.1484375, 0.000000, 0.000000, 312.31805419922); //
CreateDynamicObject(997, -1317.0656738281, 200.42514038086, 13.148438453674, 0.000000, 0.000000, 312.31384277344); //
CreateDynamicObject(997, -1314.5523681641, 202.56764221191, 13.148436546326, 0.000000, 0.000000, 312.31384277344); //
CreateDynamicObject(8149, -1377.4871826172, -18.244235992432, 16.647901535034, 0.000000, 0.000000, 224.84777832031); //
CreateDynamicObject(8556, -1307.5014648438, 188.17308044434, 17.664493560791, 0.000000, 0.000000, 308.34234619141); //
CreateDynamicObject(987, -1238.0145263672, 129.05061340332, 13.148436546326, 0.000000, 0.000000, 47.681732177734); //
CreateDynamicObject(987, -1245.0134277344, 123.79091644287, 14.25297832489, 0.000000, 0.000000, 47.6806640625); //
}
return 1;
}
#endif
mas deu erros, alguem me pode ajudar?
Reply
#2

Com o streamer nгo й CreateDynamicObject, e sim:

pawn Код:
Streamer_SetIntData(STREAMER_TYPE_OBJECT, gObject, E_STREAMER_MODEL_ID, 1225);
Mas esta faltando muita coisa. le direito aki que vc consegue:

http://forum.sa-mp.com/index.php?topic=127905.0
Reply
#3

e eu posso fazer isto num filterscript?
public OnFilterScriptInit()//posso meter aqui?
meto assim?
Streamert_SetIntData(8149, -1472.9530029297, -619.67437744141, 16.249464035034, 0.000000, 0.000000, 240.79541015625, 0, 0);//
Reply
#4

Pode sim, mas vc tem q fazer do geito que o tuto falou. le o link.
Reply
#5

Eu fiz assim e nгo deu,nao percebo porque.

pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>
#include <rStreamer>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    {
    Streamert_SetIntData(8149, -1472.9530029297, -619.67437744141, 16.249464035034, 0.000000, 0.000000, 240.79541015625, 0, 0);//
    Streamert_SetIntData(8149, -1379.3395996094, -633.03631591797, 16.249464035034, 0.000000, 0.000000, 268.60717773438, 0, 0);//
    Streamert_SetIntData(8149, -1269.4045410156, -574.73956298828, 16.249464035034, 0.000000, 0.000000, 332.1806640625, 0, 0);//
    Streamert_SetIntData(8149, -1199.3039550781, -441.96127319336, 16.249464035034, 0.000000, 0.000000, 332.17504882813, 0, 0);//
    Streamert_SetIntData(8149, -1168.2399902344, -303.45010375977, 16.249464035034, 0.000000, 0.000000, 3.9600830078125, 0, 0);//
    Streamert_SetIntData(8149, -1176.6396484375, -185.69467163086, 16.249464035034, 0.000000, 0.000000, 3.955078125, 0, 0);//
    Streamert_SetIntData(8149, -1188.9636230469, -122.91675567627, 16.249464035034, 0.000000, 0.000000, 47.663360595703, 0, 0);//
    Streamert_SetIntData(8149, -1278.5206298828, -23.345390319824, 16.249464035034, 0.000000, 0.000000, 146.99554443359, 0, 0);//
    Streamert_SetIntData(8149, -1284.7562255859, -115.78004455566, 16.249464035034, 0.000000, 0.000000, 222.48736572266, 0, 0);//
    Streamert_SetIntData(8149, -1224.0095214844, -242.72842407227, 16.249464035034, 0.000000, 0.000000, 186.72290039063, 0, 0);//
    Streamert_SetIntData(8149, -1245.9251708984, -414.5322265625, 16.249464035034, 0.000000, 0.000000, 150.95709228516, 0, 0);//
    Streamert_SetIntData(8149, -1220.5930175781, -274.8088684082, 16.249464035034, 0.000000, 0.000000, 186.71514892578, 0, 0);//
    Streamert_SetIntData(8149, -1302.9537353516, -517.27667236328, 16.249464035034, 0.000000, 0.000000, 150.9541015625, 0, 0);//
    Streamert_SetIntData(8149, -1411.5476074219, -578.64666748047, 16.249464035034, 0.000000, 0.000000, 83.403106689453, 0, 0);//
    Streamert_SetIntData(8149, -1583.3492431641, -534.93225097656, 16.249464035034, 0.000000, 0.000000, 43.667877197266, 0, 0);//
    Streamert_SetIntData(8149, -1565.7293701172, -520.67736816406, 16.244981765747, 0.000000, 0.000000, 43.665161132813, 0, 0);//
    Streamert_SetIntData(8149, -1671.5203857422, -449.55953979492, 16.249464035034, 0.000000, 0.000000, 43.665161132813, 0, 0);//
    Streamert_SetIntData(8149, -1721.8983154297, -327.66098022461, 16.249464035034, 0.000000, 0.000000, 359.95703125, 0, 0);//
    Streamert_SetIntData(8149, -1684.0858154297, -190.73899841309, 16.647901535034, 0.000000, 0.000000, 328.16796875, 0, 0);//
    Streamert_SetIntData(8149, -1618.9927978516, -113.51062774658, 16.249464035034, 0.000000, 0.000000, 316.24658203125, 0, 0);//
    Streamert_SetIntData(8149, -1515.1849365234, -5.2084732055664, 16.244993209839, 0.000000, 0.000000, 316.24145507813, 0, 0);//
    Streamert_SetIntData(8149, -1418.4802246094, 95.592826843262, 16.249464035034, 0.000000, 0.000000, 316.24145507813, 0, 0);//
    Streamert_SetIntData(8149, -1334.4305419922, 182.92753601074, 16.249464035034, 0.000000, 0.000000, 316.24145507813, 0, 0);//
    Streamert_SetIntData(8342, -1251.4184570313, 243.17251586914, 16.249465942383, 0.000000, 0.000000, 316.29156494141, 0, 0);//
    Streamert_SetIntData(8342, -1199.7061767578, 167.04116821289, 16.241916656494, 0.000000, 0.000000, 224.90075683594, 0, 0);//
    Streamert_SetIntData(8342, -1276.6888427734, 163.28210449219, 16.249465942383, 0.000000, 0.000000, 42.121429443359, 0, 0);//
    Streamert_SetIntData(8149, -1194.1872558594, 71.567245483398, 16.249464035034, 0.000000, 0.000000, 224.85144042969, 0, 0);//
    Streamert_SetIntData(8149, -1203.2281494141, -3.8033258914948, 16.249464035034, 0.000000, 0.000000, 145.376953125, 0, 0);//
    Streamert_SetIntData(8149, -1255.7191162109, 13.195604324341, 16.249464035034, 0.000000, 0.000000, 145.37664794922, 0, 0);//
    Streamert_SetIntData(8263, -1458.7514648438, -570.67193603516, 16.249464035034, 0.000000, 0.000000, 0.000000, 0, 0);//
    Streamert_SetIntData(8149, -1641.3310546875, -446.96569824219, 16.249464035034, 0.000000, 0.000000, 43.665161132813, 0, 0);//
    Streamert_SetIntData(8149, -1689.5682373047, -320.89212036133, 16.249464035034, 0.000000, 0.000000, 355.98254394531, 0, 0);//
    Streamert_SetIntData(8149, -1639.6340332031, -189.66687011719, 16.244993209839, 0.000000, 0.000000, 320.22009277344, 0, 0);//
    Streamert_SetIntData(8149, -1542.5795898438, -79.914772033691, 16.244993209839, 0.000000, 0.000000, 316.24499511719, 0, 0);//
    Streamert_SetIntData(8149, -1446.0524902344, 14.567546844482, 16.647901535034, 0.000000, 0.000000, 312.26794433594, 0, 0);//
    Streamert_SetIntData(8149, -1340.3206787109, 90.923370361328, 16.59135055542, 0.000000, 0.000000, 320.21142578125, 0, 0);//
    Streamert_SetIntData(8149, -1344.8314208984, 119.61032104492, 16.647901535034, 0.000000, 0.000000, 320.20751953125, 0, 0);//
    Streamert_SetIntData(8556, -1290.8286132813, 167.70899963379, 18.062931060791, 0.000000, 0.000000, 308.34460449219, 0, 0);//
    Streamert_SetIntData(981, -1283.1037597656, 188.4573059082, 13.522933959961, 0.000000, 0.000000, 220.92816162109, 0, 0);//
    Streamert_SetIntData(981, -1273.0572509766, 197.70780944824, 13.61491394043, 0.000000, 0.000000, 220.92407226563, 0, 0);//
    Streamert_SetIntData(996, -1314.5837402344, 206.35124206543, 13.897192955017, 0.000000, 0.000000, 308.34460449219, 0, 0);//
    Streamert_SetIntData(996, -1324.2911376953, 199.30369567871, 14.295630455017, 0.000000, 0.000000, 308.34228515625, 0, 0);//
    Streamert_SetIntData(996, -1311.1219482422, 200.87358093262, 15.136713981628, 0.000000, 0.000000, 220.92553710938, 0, 0);//
    Streamert_SetIntData(997, -1319.4708251953, 197.9605255127, 13.1484375, 0.000000, 0.000000, 312.31805419922, 0, 0);//
    Streamert_SetIntData(997, -1317.0656738281, 200.42514038086, 13.148438453674, 0.000000, 0.000000, 312.31384277344, 0, 0);//
    Streamert_SetIntData(997, -1314.5523681641, 202.56764221191, 13.148436546326, 0.000000, 0.000000, 312.31384277344, 0, 0);//
    Streamert_SetIntData(8149, -1377.4871826172, -18.244235992432, 16.647901535034, 0.000000, 0.000000, 224.84777832031, 0, 0);//
    Streamert_SetIntData(8556, -1307.5014648438, 188.17308044434, 17.664493560791, 0.000000, 0.000000, 308.34234619141, 0, 0);//
    Streamert_SetIntData(987, -1238.0145263672, 129.05061340332, 13.148436546326, 0.000000, 0.000000, 47.681732177734, 0, 0);//
    Streamert_SetIntData(987, -1245.0134277344, 123.79091644287, 14.25297832489, 0.000000, 0.000000, 47.6806640625, 0, 0);//
        }
    return 1;
}


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

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

public OnPlayerSpawn(playerid)
{
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    return 1;
}

public OnVehicleSpawn(vehicleid)
{
    return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
    return 1;
}

public OnPlayerText(playerid, text[])
{
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
        // Do something here
        return 1;
    }
    return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
    return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
    return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
    return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
    return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
    return 1;
}

public OnRconCommand(cmd[])
{
    return 1;
}

public OnPlayerRequestSpawn(playerid)
{
    return 1;
}

public OnObjectMoved(objectid)
{
    return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
    return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
    return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
    return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
    return 1;
}

public OnPlayerExitedMenu(playerid)
{
    return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
    return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
    return 1;
}

public OnPlayerUpdate(playerid)
{
    return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
    return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
    return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
    return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    return 1;
}
#endif
Alguem me pode ajudar?
Reply
#6

O "#define filterscript" ta como comment

pawn Код:
//#define FILTERSCRIPT
|
V

pawn Код:
#define FILTERSCRIPT
Reply
#7

Nгo nгo й isso, nгo tem a ver. os porque assim dбva erros no script mas o que se passa й que os objectos nгo aparecem
Reply
#8

#include <rStreamer> ??

nгo seria #include <streamer>
Reply
#9

agora dб me estes erros todo e nem sequer existem essas linhas
Код:
C:\Program Files\Rockstar Games\GTA San Andreas\server\Server\pawno\include\streamer.inc(249) : error 017: undefined symbol "IsPlayerNPC"
C:\Program Files\Rockstar Games\GTA San Andreas\server\Server\pawno\include\streamer.inc(273) : error 017: undefined symbol "IsPlayerNPC"
C:\Program Files\Rockstar Games\GTA San Andreas\server\Server\pawno\include\streamer.inc(325) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\GTA San Andreas\server\Server\pawno\include\streamer.inc(326) : error 017: undefined symbol "CreatePlayer3DTextLabel"
C:\Program Files\Rockstar Games\GTA San Andreas\server\Server\pawno\include\streamer.inc(328) : error 017: undefined symbol "DeletePlayer3DTextLabel"
C:\Program Files\Rockstar Games\GTA San Andreas\server\Server\pawno\include\streamer.inc(346) : error 017: undefined symbol "UpdatePlayer3DTextLabelText"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Reply
#10

Quote:
Originally Posted by tshadow
agora dб me estes erros todo e nem sequer existem essas linhas
Код:
C:\Program Files\Rockstar Games\GTA San Andreas\server\Server\pawno\include\streamer.inc(249) : error 017: undefined symbol "IsPlayerNPC"
C:\Program Files\Rockstar Games\GTA San Andreas\server\Server\pawno\include\streamer.inc(273) : error 017: undefined symbol "IsPlayerNPC"
C:\Program Files\Rockstar Games\GTA San Andreas\server\Server\pawno\include\streamer.inc(325) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\GTA San Andreas\server\Server\pawno\include\streamer.inc(326) : error 017: undefined symbol "CreatePlayer3DTextLabel"
C:\Program Files\Rockstar Games\GTA San Andreas\server\Server\pawno\include\streamer.inc(328) : error 017: undefined symbol "DeletePlayer3DTextLabel"
C:\Program Files\Rockstar Games\GTA San Andreas\server\Server\pawno\include\streamer.inc(346) : error 017: undefined symbol "UpdatePlayer3DTextLabelText"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Essas linhas do erro nгo estгo no GM, sim no include. O problema й que o include й para 0.3, e tenho certeza que seu GM й 0.2, do contrбrio nгo daria estes erros. No include, hб funзхes apenas presentes no PAWNO 0.3, por isso nгo funciona :P
Reply


Forum Jump:


Users browsing this thread: