ERROR SPAWN
#1

Puse una cancion al momento de spawn , pero cuando entro a probarlo demora en aparecer el sonido o aveces no suena ayuden porfavor , aca mi archivo pawn
Quote:

//====HECHO POR UARDOK======
//

#include <a_samp>
#include <streamer>

new bool:Reproduciendo[MAX_PLAYERS];

public OnFilterScriptInit()
{
printf( "SPAWNSKIN" );
return 1;
}

public OnFilterScriptExit()
{
printf( "SPAWNSKIN" );
return 1;
}
public OnGameModeInit()
{

CreateObject(19129, -1444.33, -935.67, 625.53, 0.00, 0.00, 0.00);
CreateObject(19129, -1444.32, -955.35, 625.53, 0.00, 0.00, 0.00);
CreateObject(19129, -1464.09, -935.68, 625.53, 0.00, 0.00, 0.00);
CreateObject(19129, -1464.06, -955.37, 625.53, 0.00, 0.00, 0.00);
CreateObject(8397, -1432.55, -945.48, 593.16, 0.00, 0.00, 0.00);
CreateObject(8397, -1432.62, -946.12, 593.16, 4.00, 0.00, 0.00);
CreateObject(8397, -1432.52, -947.08, 593.16, 8.00, 0.00, 0.00);
CreateObject(8397, -1432.25, -948.79, 593.16, 12.00, 0.00, 0.00);
CreateObject(8397, -1432.04, -950.04, 593.16, 16.00, 0.00, 0.00);
CreateObject(8397, -1432.18, -950.59, 593.16, 20.00, 0.00, 0.00);
CreateObject(3511, -1435.89, -964.52, 625.45, 0.00, 0.00, 0.00);
CreateObject(3511, -1435.83, -926.15, 625.45, 0.00, 0.00, 0.00);
CreateObject(8397, -1432.46, -944.80, 593.16, -4.00, 0.00, 0.00);
CreateObject(8397, -1432.35, -944.14, 593.16, -8.00, 0.00, 0.00);
CreateObject(8397, -1432.34, -943.21, 593.16, -12.00, 0.00, 0.00);
CreateObject(8397, -1432.29, -942.29, 593.16, -16.00, 0.00, 0.00);
CreateObject(8397, -1432.16, -941.27, 593.16, -20.00, 0.00, 0.00);
CreateObject(19129, -1435.17, -935.67, 620.82, 0.00, -90.00, 0.00);
CreateObject(19129, -1435.15, -955.48, 620.79, 0.00, -90.00, 0.00);
CreateObject(7073, -1433.80, -923.96, 639.96, 0.00, 0.00, 0.00);
CreateObject(7073, -1434.09, -966.69, 639.96, 0.00, 0.00, 0.00);
CreateObject(3511, -1435.76, -928.11, 625.45, 0.00, 0.00, 0.00);
CreateObject(3511, -1435.97, -962.52, 625.45, 0.00, 0.00, 0.00);
CreateObject(17033, -1440.21, -922.75, 625.47, 0.00, 0.00, 135.00);
CreateObject(17033, -1464.91, -922.47, 625.47, 0.00, 0.00, 135.00);
CreateObject(17033, -1452.84, -922.44, 625.47, 0.00, 0.00, 135.00);
CreateObject(17033, -1442.32, -969.05, 625.47, 0.00, 0.00, -33.00);
CreateObject(17033, -1456.87, -969.05, 625.47, 0.00, 0.00, -33.00);
CreateObject(17033, -1467.51, -969.33, 625.47, 0.00, 0.00, -37.00);
CreateObject(7916, -1443.29, -966.27, 627.82, 0.00, 0.00, 180.00);
CreateObject(7916, -1456.92, -925.44, 627.82, 0.00, 0.00, -10.00);
CreateObject(3511, -1435.65, -937.57, 624.92, 0.00, 0.00, 0.00);
CreateObject(3511, -1436.31, -953.92, 625.45, 0.00, 0.00, -135.00);
CreateObject(18092, -1440.87, -945.63, 627.27, 0.00, 0.00, 90.00);
CreateObject(974, -1438.56, -946.36, 626.83, 90.00, 0.00, 0.00);
CreateObject(974, -1438.64, -940.90, 626.83, 90.00, 0.00, 0.00);
CreateObject(2232, -1440.94, -941.43, 627.39, 0.00, 0.00, -61.00);
CreateObject(2232, -1441.01, -949.49, 627.41, 0.00, 0.00, -120.00);
CreateObject(2232, -1441.01, -949.49, 628.55, 0.00, 0.00, -120.00);
CreateObject(16088, -1442.89, -945.43, 625.36, 0.00, 0.00, 0.00);
CreateObject(974, -1438.57, -950.42, 626.85, 90.00, 0.00, 0.00);
CreateObject(1841, -1441.38, -947.68, 626.94, 0.00, 0.00, 0.00);
CreateObject(1841, -1441.32, -945.76, 626.89, 0.00, 0.00, 0.00);
CreateObject(14820, -1441.15, -947.01, 627.88, 0.00, 0.00, 90.00);
CreateObject(2226, -1440.68, -943.63, 627.76, 0.00, 0.00, 271.00);
CreateObject(18654, -1443.23, -939.44, 626.86, 0.00, 0.00, 55.00);
CreateObject(18654, -1443.30, -951.54, 626.86, 0.00, 0.00, -62.00);
CreateObject(2229, -1440.91, -940.44, 626.79, 0.00, 0.00, -55.00);
CreateObject(2229, -1441.29, -950.80, 626.73, 0.00, 0.00, -120.00);
CreateObject(1841, -1441.35, -945.42, 626.89, 0.00, 0.00, 0.00);
CreateObject(1841, -1441.34, -943.54, 626.89, 0.00, 0.00, 0.00);
CreateObject(2232, -1440.90, -941.43, 628.58, 0.00, 0.00, -61.00);
CreateObject(974, -1441.94, -941.43, 624.08, 0.00, 0.00, -90.00);
CreateObject(974, -1441.93, -948.11, 624.08, 0.00, 0.00, -90.00);
CreateObject(974, -1441.85, -949.77, 624.08, 0.00, 0.00, -90.00);
CreateObject(2232, -1443.41, -939.48, 631.62, 18.00, 0.00, -47.00);
CreateObject(3437, -1435.30, -939.48, 627.51, 0.00, 0.00, -90.00);
CreateObject(3437, -1435.32, -951.98, 627.52, 0.00, 0.00, -90.00);
CreateObject(16088, -1435.82, -945.83, 625.36, 0.00, 0.00, 0.00);
CreateObject(2229, -1443.21, -941.22, 632.17, 6.00, 0.00, -90.00);
CreateObject(2229, -1443.21, -941.90, 632.17, 6.00, 0.00, -90.00);
CreateObject(2229, -1443.24, -942.62, 632.17, 6.00, 0.00, -90.00);
CreateObject(2229, -1443.15, -948.36, 632.17, 6.00, 0.00, -90.00);
CreateObject(2229, -1443.19, -949.08, 632.17, 6.00, 0.00, -90.00);
CreateObject(2229, -1443.21, -949.78, 632.17, 6.00, 0.00, -90.00);
CreateObject(18655, -1436.78, -941.95, 626.82, 0.00, 0.00, 40.00);
CreateObject(18655, -1436.82, -949.19, 626.82, 0.00, 0.00, -47.00);
CreateObject(10244, -1444.18, -955.21, 623.30, 0.00, 0.00, 0.00);
CreateObject(2714, -1443.61, -945.53, 632.83, 0.00, 0.00, -90.00);
CreateObject(2231, -1443.22, -944.03, 633.41, 33.00, 0.00, -90.00);
CreateObject(2231, -1443.24, -944.51, 633.41, 33.00, 0.00, -90.00);
CreateObject(2231, -1443.28, -946.62, 633.41, 33.00, 0.00, -90.00);
CreateObject(2231, -1443.27, -947.12, 633.41, 33.00, 0.00, -90.00);
CreateObject(3515, -1437.66, -940.23, 625.92, 0.00, 0.00, 0.00);
CreateObject(3515, -1437.80, -951.11, 625.94, 0.00, 0.00, 0.00);
CreateObject(17033, -1443.36, -974.12, 629.14, 0.00, 0.00, -33.00);
CreateObject(17033, -1459.28, -973.52, 629.07, 0.00, 0.00, -33.00);
CreateObject(17033, -1474.61, -974.39, 628.95, 0.00, 0.00, -33.00);
CreateObject(17033, -1438.93, -917.52, 628.95, 0.00, 0.00, 135.00);
CreateObject(17033, -1454.57, -917.35, 628.95, 0.00, 0.00, 135.00);
CreateObject(17033, -1468.90, -917.22, 628.95, 0.00, 0.00, 135.00);
CreateObject(17033, -1480.72, -974.24, 628.73, 0.00, 0.00, -33.00);
CreateObject(7916, -1471.98, -967.39, 627.82, 0.00, 0.00, 180.00);
CreateObject(18102, -1439.70, -950.18, 633.35, 0.00, 0.00, -94.00);
CreateObject(19129, -1483.98, -955.48, 625.53, 0.00, 0.00, 0.00);
CreateObject(19129, -1483.95, -935.62, 625.53, 0.00, 0.00, 0.00);
CreateObject(17033, -1479.29, -967.21, 625.47, 0.00, 0.00, -37.00);
CreateObject(17033, -1476.79, -922.22, 625.47, 0.00, 0.00, 135.00);
CreateObject(17033, -1482.36, -918.19, 628.95, 0.00, 0.00, 135.00);
CreateObject(17033, -1484.63, -921.56, 625.47, 0.00, 0.00, 135.00);
CreateObject(17033, -1488.13, -969.16, 625.47, 0.00, 0.00, -37.00);
CreateObject(7916, -1465.96, -965.27, 627.82, 0.00, 0.00, 180.00);
CreateObject(7916, -1476.00, -922.61, 627.82, 0.00, 0.00, -10.00);
CreateObject(3498, -1443.48, -938.25, 629.05, 0.00, 0.00, 0.00);
CreateObject(3498, -1443.60, -952.86, 629.05, 0.00, 0.00, 0.00);
CreateObject(3437, -1435.32, -945.69, 631.99, 0.00, -90.00, -90.00);


return 1;
}

public OnPlayerConnect(playerid)
{
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1 ,1,1,1);
SetPlayerPos(playerid,-1438.8280,-945.5993,628.1444);
SetPlayerFacingAngle(playerid,90.9184);
SetPlayerTime(playerid,0,0);
SetPlayerInterior(playerid, 0);
InterpolateCameraPos(playerid, -1489.645751, -945.775939, 642.937683, -1462.606079, -945.889343, 634.992126, 3000);
InterpolateCameraLookAt(playerid, -1484.848632, -945.796020, 641.528015, -1457.808959, -945.909423, 633.582458, 3000);
if(!Reproduciendo[playerid])
{
PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/s/e46yxzrp6twutx5/CSI%20Miami%20Theme%20Song%20w-%20HP%20Picture%20Book%20Commerical%20Ad%20Effect. mp3");
Reproduciendo[ playerid ] = true;
}
return 1;
}
public OnPlayerSpawn(playerid)
{
if( Reproduciendo[playerid])
{
StopAudioStreamForPlayer(playerid);
Reproduciendo[ playerid ] = false;
}
return 1;
}

Reply
#2

a mi tambiйn tarda en aparecer "musicas" de drop box que yo subo.. intenta con otra y si no suena prueba subiendole el volumen a tu GTA SA, en especial "radio"
Reply
#3

Quote:
Originally Posted by uardo12
Посмотреть сообщение
Puse una cancion al momento de spawn, pero cuando entro a probarlo demora en aparecer el sonido o aveces no suena
Eso ya es cuestiуn de tu Internet y no del script, recordemos que los AudioStream son audios de Internet, por lo que si tienes una Internet lenta, el AudioStream tardarб en cargar y en reproducirse.
Reply
#4

Aya ok y hay otra manera de poner un sonido O.o
Reply
#5

Es que SA-MP no tiene un sistema de sonidos en sн(internos del juego si, pero no externos), sino de Audio Stream que es mбs para radios (reverenda verga la verdad), por eso tarda 1 o 2 segundos en cargar.
Reply
#6

para archivos de radio?entonces como puedo poner esta emisora en mi samp al momento de subirse a un auto o moto?
LINK RADIO:http://www.lazona.com.pe/zonaenvivo ayuden porf

se puede o no?
Reply
#7

en teoria... se puede, pero hay que encontrar la url y creo ke esa pagina no nos la facilita :/.

para colocar radiso puedes utilizar esta web... http://www.shoutcast.com/
Reply
#8

Quote:
Originally Posted by OTACON
Посмотреть сообщение
en teoria... se puede, pero hay que encontrar la url y creo ke esa pagina no nos la facilita :/.

para colocar radiso puedes utilizar esta web... http://www.shoutcast.com/
es que yo quisiera una radio de mi Pais :/,y si es asi como sacaria el URL por ejm de otra radio?
Reply
#9

Quote:
Originally Posted by uardo12
Посмотреть сообщение
es que yo quisiera una radio de mi Pais :/,y si es asi como sacaria el URL por ejm de otra radio?
mirando el codigo fuente de la web :/.
Reply
#10

pero hasta donde se tiene q estar en pls cierto?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)