SA-MP Forums Archive
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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Error (/showthread.php?tid=248825)



Error - ShawnMiller1337 - 16.04.2011

Код:
new WeedRandomNumber = 14;
new WeedRandom[14][1] = {
{13),
{14),
{15),
{16),
{17),
{18),
{19),
{20),
{21),
{22),
{23),
{24),
{25),
{26)
};
Код:
(1922) : error 001: expected token: ";", but found ")"
(1936) : error 010: invalid function or declaration
No idea


Re: Error - ShawnMiller1337 - 16.04.2011

hello o.o ?


Re: Error - peterRook - 16.04.2011

new Forbiddenweapons[][] = {
36 //rocket launcher
38 //minigun
39 //Satchel charge
40 //Detonater
37 //Flamethrower
16 //Grenade
4 //knife
17 //Tear gas
};


this is the start of an anti cheat system im making

your code maybe should look like this -

new WeedRandomNumber = 14;
new WeedRandom[14][1] = {
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26
};


Make sure you have public ...... then it will work


Re: Error - XFlawless - 16.04.2011

lol you are using { and ) it has to be }

pawn Код:
new WeedRandomNumber = 14;
new WeedRandom[14][1] = {
{13},
{14},
{15},
{16},
{17},
{18},
{19},
{20},
{21},
{22},
{23},
{24},
{25},
{26}
};