14.01.2014, 10:39
Hi.
I'm creating a Drugs system.
This drug system allows to drop bags containing drugs.
I've defined MAX_BAGS, i've done my enum bContenu (French word, sry), and I also have created my bagContains array, but nothing.
When I compile, "Undefined symbol "bagid" "
Look at my code
Anyone has an idea about the undefined symbol ?
Thanks in advance
I'm creating a Drugs system.
This drug system allows to drop bags containing drugs.
I've defined MAX_BAGS, i've done my enum bContenu (French word, sry), and I also have created my bagContains array, but nothing.
When I compile, "Undefined symbol "bagid" "
Look at my code
PHP код:
#define MAX_BAGS 600
enum bContenu
{
Railsv,
Poudre,
Poudrep,
Feuilles,
Graines,
Weed,
Rails,
Joints,
};
new bagContains[MAX_BAGS][bContenu];
// in OnPlayerDeath
new ramm = random(150);
new pamm = random(300);
new ppamm = random(50);
new famm = random(100);
new wamm = random(150);
new gamm = random(300);
new camm = random(50);
new jamm = random(50);
new total = ramm+pamm+ppamm+famm+wamm+gamm+camm+jamm;
PlayerInfo[playerid][pRailsv] -= ramm;
PlayerInfo[playerid][pPoudre] -= pamm;
PlayerInfo[playerid][pPoudrep] -= ppamm;
PlayerInfo[playerid][pWeed] -= wamm;
PlayerInfo[playerid][pFeuilles] -= famm;
PlayerInfo[playerid][pGraines] -= gamm;
PlayerInfo[playerid][pRails] -= camm;
PlayerInfo[playerid][pJoints] -= jamm;
format(string, sizeof(string), "{9ACD32}[Information]{FFFFFF} A ta mort, tu as perdu %d graines, %d feuilles de weed, %d feuilles а rouler, %d rails vides, %d grammes de poudre а prйparer, %d grammes de poudre prйparйe, %d joints et %d rails de coke prйparйs.", gamm, wamm, famm, ramm, pamm, ppamm, jamm, camm);
SendClientMessage(playerid, -1, string);
GetPlayerPos(playerid, x, y, z);
SpawnBag(2919, x, y, z, 0.0);
bagContains[bagid][Railsv] = ramm;
bagContains[bagid][Poudre] = pamm;
bagContains[bagid][Poudrep] = ppamm;
bagContains[bagid][Weed] = wamm;
bagContains[bagid][Feuilles] = famm;
bagContains[bagid][Graines] = gamm;
bagContains[bagid][Rails] = camm;
bagContains[bagid][Joints] = jamm;
Thanks in advance