11.02.2012, 08:30
I am making a racing script that saves all the race and chechpoint data in a MySQL database.
So here is my problem:
I have one array and it has to be linked to the other, my checkpoint data has to be linked to the race Id.
Error message:
So here is my problem:
I have one array and it has to be linked to the other, my checkpoint data has to be linked to the race Id.
Код:
#define MAX_RACES 5 #define MAX_CHECKPOINTS 40 enum eCheckpoint { cId, Float:cX, Float:cY, Float:cZ } enum eRace { rId, rName[50], rCreator[50], Float:rAngle, rVehicle, rCheckpoints[MAX_CHECKPOINTS][eCheckpoint] } new gRace[MAX_RACES][eRace];
Код:
\SA-MP server\gamemodes\race.pwn(62) : error 001: expected token: "}", but found "["