This crashes the compiler, could anyone tell me why?
#1

pawn Код:
new FurnitureArray[][e_furn] =
{
    //
    // Model, name, cost, storable, wepslots
    //
    {2290, GetFurniName(2290), InfPrice(100), 0, 0}
    {14490, GetFurniName(14490), InfPrice(200), 0, 0}
    {1794, GetFurniName(1794), InfPrice(700), 1, 1}
    {2306, GetFurniName(2306), InfPrice(125), 1, 1}
    {2073, GetFurniName(2073), InfPrice(100), 0, 0}
    {1734, GetFurniName(1734), InfPrice(130), 0, 0}
    {2100, GetFurniName(2100), InfPrice(800), 0, 0}
    {14527, GetFurniName(14527), InfPrice(80), 0, 0}

};
Reply
#2

The lines he to end with a comma, So it'd be:
pawn Код:
new FurnitureArray[][e_furn] =
{
    //
    // Model, name, cost, storable, wepslots
    //
    {2290, GetFurniName(2290), InfPrice(100), 0, 0},
    {14490, GetFurniName(14490), InfPrice(200), 0, 0},
    {1794, GetFurniName(1794), InfPrice(700), 1, 1},
    {2306, GetFurniName(2306), InfPrice(125), 1, 1},
    {2073, GetFurniName(2073), InfPrice(100), 0, 0},
    {1734, GetFurniName(1734), InfPrice(130), 0, 0},
    {2100, GetFurniName(2100), InfPrice(800), 0, 0},
    {14527, GetFurniName(14527), InfPrice(80), 0, 0}
};
if that doesn't fix it... Show me that functions you use their. (I don't even think you can do that so I think thats the issue.)
Reply
#3

as Ahmad said,put ',':
pawn Код:
new FurnitureArray[][e_furn] =
{
    //
    // Model, name, cost, storable, wepslots
    //
    {2290, GetFurniName(2290), InfPrice(100), 0, 0},
    {14490, GetFurniName(14490), InfPrice(200), 0, 0},
    {1794, GetFurniName(1794), InfPrice(700), 1, 1},
    {2306, GetFurniName(2306), InfPrice(125), 1, 1},
    {2073, GetFurniName(2073), InfPrice(100), 0, 0},
    {1734, GetFurniName(1734), InfPrice(130), 0, 0},
    {2100, GetFurniName(2100), InfPrice(800), 0, 0},
    {14527, GetFurniName(14527), InfPrice(80), 0, 0}
};
Reply
#4

I added the commas and it made no difference!

You were right it's the functions, thanks a lot.
Reply
#5

Quote:
Originally Posted by Dokins
Посмотреть сообщение
I added the commas and it made no difference!

You were right it's the functions, thanks a lot.
You mean it was compiling without them ? :/
Reply
#6

It's fixed, thanks a lot. It was the functions!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)