PDA

View Full Version : undefined symbol


Vizi
01/12/2012, 07:25 AM
How to fix these?

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

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;
}

mastermax7777
01/12/2012, 07:25 AM
#include <zcmd> at top of script

Vizi
01/12/2012, 07:28 AM
ihave :S

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

Alcatraz Gaming
01/12/2012, 07:34 AM
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?

[HK]Ryder[AN]
01/12/2012, 07:41 AM
use this
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

Vizi
01/12/2012, 07:42 AM
i have zcmd
COMMAND:stopmusic(playerid, params[])

PS Ryder same :S

[HK]Ryder[AN]
01/12/2012, 07:43 AM
i have zcmd
COMMAND:stopmusic(playerid, params[])
Ryder[AN];2249145']use this
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

Vizi
01/12/2012, 07:45 AM
Same RYDER :SSSS please heeelp

[HK]Ryder[AN]
01/12/2012, 07:47 AM
use this
YCMD:stopmusic(playerid, params[], help)
{
#pragma unused help
#pragma unused params
for(new i=0;i<MAX_PLAYERS;i++)
{
StopAudioStreamForPlayer(i);
}
return 1;
}

Vizi
01/12/2012, 07:50 AM
now this :@:@ oMG

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

[HK]Ryder[AN]
01/12/2012, 07:52 AM
well you are including both, y_commands as well as ZCMD..
use only one of them..if you remove zcmd use the code i just posted.
if you remove y_commands use the code i posted earlier.

both of them are conflicting

Vizi
01/12/2012, 07:54 AM
to delete #include <zcmd> or ?

[HK]Ryder[AN]
01/12/2012, 07:57 AM
delete #include <zcmd> from your script

Vizi
01/12/2012, 08:03 AM
now

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

Rep for you trying to help me :D

[HK]Ryder[AN]
01/12/2012, 08:05 AM
show the code of line 12303..

or PM me your teamviewer id nd passs

Vizi
01/12/2012, 08:07 AM
ОК now

[HK]Ryder[AN]
01/12/2012, 08:24 AM
fixed via teamviewer