2 ERORS :@ - 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: 2 ERORS :@ (
/showthread.php?tid=338987)
2 ERORS :@ -
3RoR - 01.05.2012
it shows me eror in line
pawn Код:
new Roadblocks[MAX_ROADBLOCKS][rInfo];
eror
Код:
C:\Users\pc\Desktop\Beyond RPG v0.1.0\gamemodes\GAMEMOD.pwn(383) : error 017: undefined symbol "rInfo"
C:\Users\pc\Desktop\Beyond RPG v0.1.0\gamemodes\GAMEMOD.pwn(383) : error 009: invalid array size (negative, zero or out of bounds)
Re: 2 ERORS :@ -
[HiC]TheKiller - 01.05.2012
rInfo is not defined / not a valid enum.
Re: 2 ERORS :@ -
Passout - 01.05.2012
enum rInfo
{
Test,//Do something here
Test,//do something here
}
new Roadblocks[MAX_ROADBLOCKS][rInfo];
Re: 2 ERORS :@ -
FalconX - 01.05.2012
Quote:
Originally Posted by 3RoR
it shows me eror in line
pawn Код:
new Roadblocks[MAX_ROADBLOCKS][rInfo];
eror
Код:
C:\Users\pc\Desktop\Beyond RPG v0.1.0\gamemodes\GAMEMOD.pwn(383) : error 017: undefined symbol "rInfo"
C:\Users\pc\Desktop\Beyond RPG v0.1.0\gamemodes\GAMEMOD.pwn(383) : error 009: invalid array size (negative, zero or out of bounds)
|
This must be used with an enum and remember to define Max_Roadblocks.
https://sampwiki.blast.hk/wiki/Keywords:Initialisers
-FalconX
Re: 2 ERORS :@ -
3RoR - 01.05.2012
thanks