Error 001: expected token: "}", but found "new"
#1

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

Show us 10 lines up as well
Reply
#3

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

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

@Below - explain how you resolved it so others can see this thread and resolve it too

(My original comment made no sense)
Reply
#6

I've resolved the problem, thanks anyway!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)