SA-MP Forums Archive
Enum errors - 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: Enum errors (/showthread.php?tid=321283)



Enum errors - Lazy_Duck - 26.02.2012

pawn Код:
enum mill  //line 2261
{
     TypeID,
     wAmmo,
     Float:WPos[3]
}
new wPickup[][mill] = {
        {41,99999,  {2427.4834,-1677.4065,13.7229}},
        {41,99999,  {2427.4834,-1677.4065,13.7229}},
        {41,99999,  {2427.4834,-1677.4065,13.7229}},
        {41,99999,  {2427.4834,-1677.4065,13.7229}}
}; //line 2272

Код:
F:\GTADM\gamemodes\GTADM.pwn(2261) : error 049: invalid line continuation
F:\GTADM\gamemodes\GTADM.pwn(2262) : error 055: start of function body without function header
F:\GTADM\gamemodes\GTADM.pwn(2267) : error 017: undefined symbol "mill"
F:\GTADM\gamemodes\GTADM.pwn(2272) : error 010: invalid function or declaration
any idea how to fix it?


Re: Enum errors - MadeMan - 26.02.2012

Show the code before it.


Re: Enum errors - Voldemort - 26.02.2012

pawn Код:
new Float:wPickup[][4] = {
        {41,99999,  2427.4834,-1677.4065,13.7229},
        {41,99999,  2427.4834,-1677.4065,13.7229},
        {41,99999,  2427.4834,-1677.4065,13.7229},
        {41,99999,  2427.4834,-1677.4065,13.7229}
};
This is how it should look, but seems you try to put 2 different things together, those 2 things you put together is invalid.


Re: Enum errors - MadeMan - 26.02.2012

Quote:
Originally Posted by Voldemort
Посмотреть сообщение
pawn Код:
new Float:wPickup[][4] = {
        {41,99999,  2427.4834,-1677.4065,13.7229},
        {41,99999,  2427.4834,-1677.4065,13.7229},
        {41,99999,  2427.4834,-1677.4065,13.7229},
        {41,99999,  2427.4834,-1677.4065,13.7229}
};
This is how it should look, but seems you try to put 2 different things together, those 2 things you put together is invalid.
There is nothing wrong with his code. I think the code before it is causing trouble.


Re: Enum errors - Lazy_Duck - 26.02.2012

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
Show the code before it.
DAMN
after hours of trying to figure out the problem

i found this
pawn Код:
//==============================Weapon Pickups================================\\
thank you