[Ajuda] ajuda erros
#8

pawn Код:
#define InterpolateCameraLookAt SetPlayerCameraLookAt
#define InterpolateCameraPost SetPlayerCameraPos

public OnPlayerRequestClass(playerid, classid)
{
        SetPlayerPos(playerid, 2004.7404,1913.8379,40.3516);
        SetPlayerFacingAngle(playerid,264.7556);
        SetPlayerTime(playerid, 0,0);
        InterpolateCameraPos(playerid,2013.6698,1913.9120,35.0304,2013.6698,1913.9120,35.0304+100,10000);
        InterpolateCameraLookAt(playerid,2004.7404,1913.8379,40.3516,2004.7404,1913.8379,40.3516+50,10000);
        return 1;
}
 
//---[Server Opening]---//
 
public OnPlayerConnect(playerid)
{
    new str[78], pnome[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pnome, sizeof(pnome));
    format(str, sizeof(str), "{1E90FF}%s {006400}(ID:%d) {B22222}Connected To The Server.", pnome, playerid);
    SendClientMessageToAll(-1, str);
        TextDrawShowForPlayer(playerid, Textdraw1);
        PlayAudioStreamForPlayer(playerid, "http://rapha3l.comyr.com/eldm/songs/intro.mp3");
        return 1;
}
 
//---[Spawn]---//
 
public OnPlayerSpawn(playerid)
{
    GivePlayerMoney(playerid,5000);
        GivePlayerWeapon(playerid,4,1);
        GivePlayerWeapon(playerid,31,9999);
        GivePlayerWeapon(playerid,1,0);
        new Random = random(sizeof(RandomSpawns));
    SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
    SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
    StopAudioStreamForPlayer(playerid);
        return 1;
}
O StopAudioFromPlayer, tem que ser colocado na public OnPlayerConnect, e eu acredito que resolvendo isso o PlayAudioStreamForPlayer deve voltar ao normal sem errors.
Reply


Messages In This Thread
ajuda erros - by LKING - 14.06.2013, 12:06
Re: ajuda erros - by Don_Speed - 14.06.2013, 12:32
Re: ajuda erros - by DannielCooper - 14.06.2013, 12:33
Re: ajuda erros - by Gustavo_Carvalho - 14.06.2013, 12:35
Re: ajuda erros - by LKING - 14.06.2013, 12:38
Re: ajuda erros - by DannielCooper - 14.06.2013, 12:54
Re: ajuda erros - by LKING - 14.06.2013, 12:58
Re: ajuda erros - by DannielCooper - 14.06.2013, 13:05
Re: ajuda erros - by LKING - 14.06.2013, 13:10
Re: ajuda erros - by DannielCooper - 14.06.2013, 13:13

Forum Jump:


Users browsing this thread: 3 Guest(s)