Error Message
#1

Hello, when I'm compiling my gamemode I'm getting this error:
Quote:

(33901) : error 017: undefined symbol "ShowSubtitle"
(33902) : error 017: undefined symbol "PlayerNameEx"
(33904) : error 017: undefined symbol "ListeningToRadio"
(33904) : warning 215: expression has no effect
(33904) : error 001: expected token: ";", but found "]"
(33904) : error 029: invalid expression, assumed zero
(33904) : fatal error 107: too many error messages on one line

And on 33901 - 33904 there is
Quote:

ShowSubtitle(playerid, "Radio changed, now playing: Hot 108 Jamz!.", 1000, 1);
format(string, sizeof(string), "* %s changed the radio station to Hot 108 Jamz.", PlayerNameEx(playerid));
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
ListeningToRadio[playerid] = 1;

Reply
#2

pawn Код:
new string[128];
SendClientMessage(playerid, -1, "Radio changed, now playing: Hot 108 Jamz !");
format(string, sizeof(string), "%s changed the radio station to Hot 108 Jamz", PlayerNameEx(playerid));
SendClientMessageToAll(-1, string);
ListeningToRadio[playerid] = 1;

/*

Or you can use : PlayAudioStreamForPlayer

*/
Isn't more simple?
Reply
#3

new string[68];
Because you don't need 128. Using the cells for no reason.
Reply
#4

Here's all of it

pawn Код:
CMD:radiostation(playerid, params[])
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        new radiostation;
        new carID;
        new string[256];
        carID = GetPlayerVehicleID(playerid);
        if(!sscanf(params, "i", radiostation))
        {
            if(radiostation < 1 || radiostation > 3)
            {
                SendClientMessage(playerid, COLOR_LIGHTRED, "   The radio station must be between 1 and 3!");
                return 1;
            }
            else if(radiostation == 1)
            {
            Audio_Stop(playerid,1);
            Audio_Stop(playerid,2);
            Audio_Stop(playerid,3);
            Audio_Stop(playerid,4);
            Audio_Stop(playerid,5);
            Audio_PlayStreamed(playerid, "http://www.hot108.com/hot108.pls", false, false, false);
            RadioPlaying[carID] = radiostation;
            ShowSubtitle(playerid, "Radio changed, now playing: Hot 108 Jamz!.", 1000, 1);
            format(string, sizeof(string), "* %s changed the radio station to Hot 108 Jamz.", PlayerNameEx(playerid));
            ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            ListeningToRadio[playerid] = 1;
            return 1;
            }
Reply
#5

Show your "ShowSubtitle" function.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)