03.09.2015, 18:29
Hey.
So i was trying to make a new table inside my DB, but as soon as i try to compile my pawno it drops the "Pawno library has stoped working" thingy.
So heres what ive done:
I did make the table inside my MySQL
I defined the new Table where all the other tables were defined inside the gamemode
I found out that the faulty part is the enum. I took out code fragments one by one and once i take out the enum part, it goes fine.
So heres how the enum looks:
Ive no idea how enums work, i imagine them as arrays.
So i was trying to make a new table inside my DB, but as soon as i try to compile my pawno it drops the "Pawno library has stoped working" thingy.
So heres what ive done:
I did make the table inside my MySQL
I defined the new Table where all the other tables were defined inside the gamemode
Код:
#define TABLE_RANKING "ranking"
So heres how the enum looks:
Код:
#define MAX_RANK 5 enum ranking { place, name, time, date }; new ranking[MAX_RANK][ranking]