Enumeration...
#1

Good Evening(?) all,
Lovingly, i'm having to rescript my entire server. But, it's been a while since i've need to touch on enums, and so what could possibly be wrong with this?

pawn Код:
enum MissionData {load[], Float:lx, Float:ly, Float:lz, lname[], Float:ux, Float:uy, Float:uz, ulname[], cost}
The Compiler throws this error:
Код:
Y:\TruckingWorld Server Project\pawno\include\tw.inc(17) : error 029: invalid expression, assumed zero
(Yes, i know the drive is odd, its on my network so i can synchronize the data to my network if i make changes from remote locations, for example at school)

Thanks,
Ash
Reply
#2

pawn Код:
enum MissionData
{
    load[256], //Arrays must have a given size.
    Float:lx,
    Float:ly,
    Float:lz,
    lname[256], //same here
    Float:ux,
    Float:uy,
    Float:uz,
    ulname[256], //And here
    cost
}
Greetz,
Jeffry
Reply
#3

Of course, i'm more used to making functions (where there is no limit) haha.

Thanks Jeffry
Loving your signature, again
Reply
#4

Quote:
Originally Posted by funky1234
Посмотреть сообщение
Thanks Jeffry
Loving your signature, again
No problem.
Glad you like it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)