Need help.
#1

Well, when I am in class selection, I press Next for next skin, but it repeats the song again.. How to fix it?

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 2323.5830,1283.2872,97.5052);
    SetPlayerFacingAngle(playerid,90);
    SetPlayerCameraPos(playerid, 2313.5503,1283.2721,98.1951);
    SetPlayerCameraLookAt(playerid, 2313.5503,1283.2721,98.1951);
    PlayAudioStreamForPlayer(playerid, "http://racerevolution.cu.cc/music/Skrillex%20-%20First%20of%20the%20Year%20GOAT%20Edition.mp3");
    return 1;
}
Reply
#2

Quote:

The following errors occurred with your submission:
This forum requires that you wait 120 seconds between posts. Please try again in 51 seconds.

-_-
anyways put the audio stream under onplayerconnect
Reply
#3

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 2323.5830,1283.2872,97.5052);
    SetPlayerFacingAngle(playerid,90);
    SetPlayerCameraPos(playerid, 2313.5503,1283.2721,98.1951);
    SetPlayerCameraLookAt(playerid, 2313.5503,1283.2721,98.1951);
    return 1;
}
pawn Код:
public OnPlayerConnect(playerid)
{
    PlayAudioStreamForPlayer(playerid, "http://racerevolution.cu.cc/music/Skrillex%20-%20First%20of%20the%20Year%20GOAT%20Edition.mp3");
    return 1;
}
Oh, kamzaf type so fast x').
Reply
#4

Thanks, but I've another problem.

pawn Код:
CMD:me(playerid,params[])
{
    #pragma unused params
    {
    if(!strlen(params)) return
    SendClientMessage(playerid, LIGHTBLUE2, "Usage: /me [Text] ")
    new string[128], name[MAX_PLAYER_NAME+1];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s {FFFFFF}%s", name, params[0]);
    return SendClientMessageToAll(LIGHTBLUE,string);
    }
}
Error:
Код:
C:\Users\Kelvin\Desktop\Scripting\gamemodes\racerevolution.pwn(5618) : error 001: expected token: ";", but found "new"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#5

pawn Код:
CMD:me(playerid, params[])
{
    new sendername[MAX_PLAYER_NAME], string[128];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    sendername[strfind(sendername,"_")] = ' ';
    if(isnull(params)) return SendClientMessage(playerid,LIGHTBLUE2,"USAGE: /me [action]");
    format(string, sizeof(string), "*%s %s", sendername, params);
    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    return 1;
}
Reply
#6

pawn Код:
CMD:me(playerid,params[])
{
    #pragma unused params
    {
    if(!strlen(params)) return
    SendClientMessage(playerid, LIGHTBLUE2, "Usage: /me [Text] ");
    new string[128], name[MAX_PLAYER_NAME+1];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s {FFFFFF}%s", name, params[0]);
    return SendClientMessageToAll(LIGHTBLUE,string);
    }
}
You missed a semi-colon here.
pawn Код:
SendClientMessage(playerid, LIGHTBLUE2, "Usage: /me [Text] ");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)