Convert ZCMD to CMD ..
#1

Hello Guys I wanna convert these linse to CMD, Thanks

pawn Код:
stock PlayAudioStreamForAll(url[])
{
    for(new i; i<GetMaxPlayers(); i++)
    {
        if(IsPlayerConnected( i ))
        {
            PlayAudioStreamForPlayer(i, url, x, y, z, distance);
        }
    }
    return 1;

}
stock StopAudioStreamForAll(url[])
{
    for(new i; i<GetMaxPlayers(); i++)
    {
        if(IsPlayerConnected( i ))
        {
             StopAudioStreamForPlayer(playerid);
        }
    }
    return 1;

}
YCMD:stopmusic(playerid, params[], help)
{
#pragma unused params
    if (help)
    {
        SendClientMessage(playerid, 0xFF0000AA, "Stops audio for everyone.");
    }
    else
    {
        new
            str[32];
        if (isnull(params))
        {
            format(str, sizeof (str), "Usage: \"/stopmusic\"";
            SendClientMessage(playerid, 0xFF0000AA, str);
        }
        else
        {
            StopAudioStreamForPlayer(playerid);
        }
    }
    return 1;
}

YCMD:music(playerid, params[], help)
{
    if (help)
    {
        SendClientMessage(playerid, 0xFF0000AA, "Plays audio for everyone.");
    }
    else
    {
        new
            str[32];
        if (isnull(params))
        {
            format(str, sizeof (str), "Usage: \"/music [url]\"";
            SendClientMessage(playerid, 0xFF0000AA, str);
        }
        else
        {
            PlayAudioStreamForAll(params);
        }
    }
    return 1;
}
Reply
#2

Код:
CMD:stopmusic(playerid, params[])
{
#pragma unused params
        new
            str[32];
        if (isnull(params))
        {
            format(str, sizeof (str), "Usage: \"/stopmusic\"";
            SendClientMessage(playerid, 0xFF0000AA, str);
        }
        else
        {
            StopAudioStreamForPlayer(playerid);
        }
    return 1;
}

CMD:music(playerid, params[])
{
        new
            str[32];
        if (isnull(params))
        {
            format(str, sizeof (str), "Usage: \"/music [url]\"";
            SendClientMessage(playerid, 0xFF0000AA, str);
        }
        else
        {
            PlayAudioStreamForAll(params);
        }
    return 1;
}
Reply
#3

Quote:
Originally Posted by Shetch
Посмотреть сообщение
Код:
CMD:stopmusic(playerid, params[])
{
#pragma unused params
        new
            str[32];
        if (isnull(params))
        {
            format(str, sizeof (str), "Usage: \"/stopmusic\"";
            SendClientMessage(playerid, 0xFF0000AA, str);
        }
        else
        {
            StopAudioStreamForPlayer(playerid);
        }
    return 1;
}

CMD:music(playerid, params[])
{
        new
            str[32];
        if (isnull(params))
        {
            format(str, sizeof (str), "Usage: \"/music [url]\"";
            SendClientMessage(playerid, 0xFF0000AA, str);
        }
        else
        {
            PlayAudioStreamForAll(params);
        }
    return 1;
}
That's All??

Код:
C:\Users\WaiM Anaas\Documents\Downloads\Compressed\SAMP 2012\filterscripts\mp3.pwn(75) : warning 203: symbol is never used: "music"
C:\Users\WaiM Anaas\Documents\Downloads\Compressed\SAMP 2012\filterscripts\mp3.pwn(75) : warning 203: symbol is never used: "stopmusic"
Reply
#4

Do you have zcmd included?
Reply
#5

Add This - At the top of your game-mode : #include <ZCMD>

Remove your
#define music
#define stopmusic

from your defines' aswell.
Reply
#6

Yes I have zcmd include, and it shows me these 2 errors that's Why I wanted to change it from zcmd to normal cmd
Reply
#7

Quote:
Originally Posted by waim
Посмотреть сообщение
Yes I have zcmd include, and it shows me these 2 errors that's Why I wanted to change it from zcmd to normal cmd
Look what I put.. •___•
Reply
#8

Quote:
Originally Posted by Akira297
Посмотреть сообщение
Look what I put.. •___•
I have already #include <ZCMD> and I don't have

#define music
#define stopmusic

Reply
#9

bump
Reply
#10

Quote:
Originally Posted by Shetch
Посмотреть сообщение
Код:
CMD:stopmusic(playerid, params[])
{
#pragma unused params
By the way, you don't need it in zcmd.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)