Error 001: expected token: "}", but found "new" - 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: Error 001: expected token: "}", but found "new" (
/showthread.php?tid=531609)
Error 001: expected token: "}", but found "new" -
DropBasser - 13.08.2014
Hi, I has this error when I compile the gm with Pawno:
-(1637) Error 001: expected token: "}", but found "new"
Code:
pawn Код:
// Boombox //1636
new Boombox[MAX_PLAYERS]; //1637
new BoomboxObject[MAX_PLAYERS]; //1638
new BoomboxStream[MAX_PLAYERS]; //1639
new BoomboxPlayer[MAX_PLAYERS]; //1640
new BoomboxURL[MAX_PLAYERS][256]; //1641
new Float:bpos[MAX_PLAYERS][4]; //1642
Thank alot guys! :P
Re: Error 001: expected token: "}", but found "new" -
Misiur - 13.08.2014
Show us 10 lines up as well
Re: Error 001: expected token: "}", but found "new" -
Blast3r - 13.08.2014
Could you show the lines before 1637? It's possible you didn't close a function with } before those defines.
EDIT: Up was faster D:
Re: Error 001: expected token: "}", but found "new" -
DropBasser - 13.08.2014
Quote:
Originally Posted by Misiur
Show us 10 lines up as well
|
Quote:
Originally Posted by Blast3r
Could you show the lines before 1637? It's possible you didn't close a function with } before those defines.
EDIT: Up was faster D:
|
pawn Код:
// About / Crediti // 1612
#define DIALOG_ABOUT 291
new Abt[][200] = {
"Credits of A:RP Workteam:\n\n",
""COE"Michel\t\t"CWE"Comunity Owner\n",
""COE"Django\t\t"CWE"Community Owner\n",
""COE"Simon\t\t"CWE"Head Admin\n",
""COE"Max\t\t"CWE"Head Admin\n",
""COE"All Staff\t\t"CWE"Always Standing Ready For Us\n",
""COE"All Testers\t"CWE"Helping with testing\n"
/*new Abt[][200] = {
""CWE"\nHere is a small information about the \"About / Credits\"\n",
"We using the zGaming Gamemode because we love the modern 0.3e Funictions\n",
"Also its a very nice gamemode, we try to make it bug free and maybe release it later\n",
"Do you need more information? go to Roy Nash or the Community Staff Team\n\n\n",
"Credits:\n\n"COE"iRage\t\t"CWE"zGaming\n",
""COE"Roy Nash\t"CWE"Edition\n",
""COE"SA-MP\t\t"CWE"Dev. Team\n",
"\n\n\n{FF0000}This script is copyrighted to iRage.\n",
"It may be edited, hosted, renamed, redistributed, etc. as long as credit is given to me."
};*/
// 1635
Re: Error 001: expected token: "}", but found "new" -
PrivatioBoni - 13.08.2014
@Below - explain how you resolved it so others can see this thread and resolve it too
(My original comment made no sense)
Re: Error 001: expected token: "}", but found "new" -
DropBasser - 13.08.2014
I've resolved the problem, thanks anyway!