SA-MP Forums Archive
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=456969)



error 001: expected token: "}", but found "new" - darkdave - 08.08.2013

I received this error: error 001: expected token: "}", but found "new"

Код:
new Peds[93][1] = {
{0}, {1}, {2}, {7}, {10}, {14}, {15}, {16}, {18}, {20}, {23}, {24}, {25}, {26}, {27}, {28}, {29}, {31}, {32}, {33}, {34}, {35}, {36}, {38}, {39}, {41}, {43},
{44}, {45}, {46}, {49}, {50}, {51}, {52}, {53}, {54}, {55}, {58}, {60}, {62}, {63}, {64}, {66}, {68}, {69}, {72}, {73}, {77}, {78}, {81}, {84}, {87}, {89}, {92},
{95}, {97}, {100}, {101}, {128}, {129}, {131}, {133}, {134}, {140}, {151}, {153}, {155}, {162}, {167}, {170}, {178}, {181}, {183}, {196}, {200}, {202}, {206},
{210}, {212}, {217}, {221}, {225}, {229}, {230}, {234}, {241}, {242}, {248}, {254}, {260}, {262}, {291}, {299}};
I tried to put
Код:
};
in a row and everything below it gives me the same error.

What should I do? Please help , thanks !


Re: error 001: expected token: "}", but found "new" - Roko_foko - 08.08.2013

You are missing one "}" line before "new Peds[93][1] = {"


Re: error 001: expected token: "}", but found "new" - sjvt - 08.08.2013

pawn Код:
new Peds[93][1] = {
{0}, {1}, {2}, {7}, {10}, {14}, {15}, {16}, {18}, {20}, {23}, {24}, {25}, {26}, {27}, {28}, {29}, {31}, {32}, {33}, {34}, {35}, {36}, {38}, {39}, {41}, {43},
{44}, {45}, {46}, {49}, {50}, {51}, {52}, {53}, {54}, {55}, {58}, {60}, {62}, {63}, {64}, {66}, {68}, {69}, {72}, {73}, {77}, {78}, {81}, {84}, {87}, {89}, {92},
{95}, {97}, {100}, {101}, {128}, {129}, {131}, {133}, {134}, {140}, {151}, {153}, {155}, {162}, {167}, {170}, {178}, {181}, {183}, {196}, {200}, {202}, {206},
{210}, {212}, {217}, {221}, {225}, {229}, {230}, {234}, {241}, {242}, {248}, {254}, {260}, {262}, {291}, {299} };



Re: error 001: expected token: "}", but found "new" - Vrag - 08.08.2013

Here's ur fix
Код:
}
new Peds[93][1] = {{0}, {1}, {2}, {7}, {10}, {14}, {15}, {16}, {18}, {20}, {23}, {24}, {25}, {26}, {27}, {28}, {29}, {31}, {32}, {33}, {34}, {35}, {36}, {38}, {39}, {41}, {43},
{44}, {45}, {46}, {49}, {50}, {51}, {52}, {53}, {54}, {55}, {58}, {60}, {62}, {63}, {64}, {66}, {68}, {69}, {72}, {73}, {77}, {78}, {81}, {84}, {87}, {89}, {92},
{95}, {97}, {100}, {101}, {128}, {129}, {131}, {133}, {134}, {140}, {151}, {153}, {155}, {162}, {167}, {170}, {178}, {181}, {183}, {196}, {200}, {202}, {206},
{210}, {212}, {217}, {221}, {225}, {229}, {230}, {234}, {241}, {242}, {248}, {254}, {260}, {262}, {291}, {299} };