undefined symbol
#1

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;
}
Reply
#2

#include <zcmd> at top of script
Reply
#3

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>
Reply
#4

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?
Reply
#5

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
Reply
#6

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

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
Reply
#8

Same RYDER :SSSS please heeelp
Reply
#9

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;
}
Reply
#10

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 :@
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)