SA-MP Forums Archive
Boombox error - 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: Boombox error (/showthread.php?tid=407191)



Boombox error - Antonioh - 12.01.2013

Код:
C:\Documents and Settings\Administrator\Desktop\SARP Server\SARP Server\filterscripts\boombox.pwn(104) : error 017: undefined symbol "Boombox"
C:\Documents and Settings\Administrator\Desktop\SARP Server\SARP Server\filterscripts\boombox.pwn(104) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Desktop\SARP Server\SARP Server\filterscripts\boombox.pwn(104) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Administrator\Desktop\SARP Server\SARP Server\filterscripts\boombox.pwn(104) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\SARP Server\SARP Server\filterscripts\boombox.pwn(104) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Line
Quote:

104> if(!Boombox[playerid]) return SendClientMessage(playerid, COLOR_GREY, "You don't have a boombox placed.");




Re: Boombox error - Infinity90 - 13.01.2013

pawn Код:
//Near the top of your script
new Boombox[MAX_PLAYERS];



Re: Boombox error - EAsT-OAK_510 - 13.01.2013

Where do you have Boombox defined?


Re: Boombox error - Antonioh - 13.01.2013

Quote:
Originally Posted by Infinity90
Посмотреть сообщение
pawn Код:
//Near the top of your script
new Boombox[MAX_PLAYERS];
Thanks but still have one more error
Код:
147) : error 017: undefined symbol "StopAudioStreamForPlayerEx"
line 147)
Quote:

{
StopAudioStreamForPlayerEx(playerid);




Re: Boombox error - Infinity90 - 13.01.2013

pawn Код:
//Replace StopAudioStreamForPlayerEx(playerid); TOO:
StopAudioStreamForPlayer(playerid);