Enum errors
#1

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

Show the code before it.
Reply
#3

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

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)