SA-MP Forums Archive
undefined symbol - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: undefined symbol (/showthread.php?tid=396509)



undefined symbol - Vizi - 01.12.2012

How to fix these?

pawn Код:
C:\Users\Daniel\Desktop\GamingClub RP\gamemodes\DreamWorld.pwn(12303) : error 029: invalid expression, assumed zero
C:\Users\Daniel\Desktop\GamingClub RP\gamemodes\DreamWorld.pwn(12303) : error 017: undefined symbol "cmd_stopmusic"
C:\Users\Daniel\Desktop\GamingClub RP\gamemodes\DreamWorld.pwn(12303) : error 029: invalid expression, assumed zero
C:\Users\Daniel\Desktop\GamingClub RP\gamemodes\DreamWorld.pwn(12303) : fatal error 107: too many error messages on one line
Line

pawn Код:
COMMAND:stopmusic(playerid, params[])  // THIS IS THE LINE
{
#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;
}



Re: undefined symbol - mastermax7777 - 01.12.2012

#include <zcmd> at top of script


Re: undefined symbol - Vizi - 01.12.2012

ihave :S

pawn Код:
#include <a_samp>
#include <core>
#include <turboenterexit>
#include <YSI\y_commands>
#include <YSI\y_master>
#include <zcmd>
#include <float>
#include <time>
#include <file>
#include <utils>
#include <morphinc>
#include <foreach>
#include <streamer>



Re: undefined symbol - Alcatraz Gaming - 01.12.2012

pawn Код:
C:\Users\Daniel\Desktop\GamingClub RP\gamemodes\DreamWorld.pwn(12303) : error 017: undefined symbol "cmd_stopmusic"
I don't see cmd_stopmusic. Probably it's /stopmusic?


Re: undefined symbol - [HK]Ryder[AN] - 01.12.2012

use this
pawn Код:
COMMAND:stopmusic(playerid, params[])
{
    for(new i=0;i<MAX_PLAYERS;i++)
    {
        StopAudioStreamForPlayer(i);
    }
    return 1;
}
this will stop music for everyone on the server


Re: undefined symbol - Vizi - 01.12.2012

i have zcmd
pawn Код:
COMMAND:stopmusic(playerid, params[])
PS Ryder same :S


Re: undefined symbol - [HK]Ryder[AN] - 01.12.2012

Quote:
Originally Posted by Vizi
Посмотреть сообщение
i have zcmd
pawn Код:
COMMAND:stopmusic(playerid, params[])
Quote:
Originally Posted by [HK]Ryder[AN]
Посмотреть сообщение
use this
pawn Код:
COMMAND:stopmusic(playerid, params[])
{
    for(new i=0;i<MAX_PLAYERS;i++)
    {
        StopAudioStreamForPlayer(i);
    }
    return 1;
}
this will stop music for everyone on the server
4char


Re: undefined symbol - Vizi - 01.12.2012

Same RYDER :SSSS please heeelp


Re: undefined symbol - [HK]Ryder[AN] - 01.12.2012

use this
pawn Код:
YCMD:stopmusic(playerid, params[], help)
{
    #pragma unused help
    #pragma unused params
    for(new i=0;i<MAX_PLAYERS;i++)
    {
        StopAudioStreamForPlayer(i);
    }
    return 1;
}



Re: undefined symbol - Vizi - 01.12.2012

now this :@:@ oMG

pawn Код:
C:\Users\Daniel\Desktop\GamingClub RP\gamemodes\DreamWorld.pwn(12303) : error 017: undefined symbol "@yC_stopmusic"
C:\Users\Daniel\Desktop\GamingClub RP\gamemodes\DreamWorld.pwn(12303) : error 017: undefined symbol "@yC_stopmusic"
C:\Users\Daniel\Desktop\GamingClub RP\gamemodes\DreamWorld.pwn(12303) : error 017: undefined symbol "i"
C:\Users\Daniel\Desktop\GamingClub RP\gamemodes\DreamWorld.pwn(12303) : fatal error 107: too many error messages on one line
FUCK THIS GAMEMODE :@