Tag mismatch
#1

Hello everybody I am doing on my job system but I get into black point...I got warning which I don`t know how to fix..

Here is the line of warning:

pawn Код:
if(RandomJobCP[3][4])//warning line
            {
                DrugStats += 20;
            }
Here is the enum and other stuff
pawn Код:
enum JobCP
{
    Float:jobCPX,
    Float:jobCPY,
    Float:jobCPZ,
    JobMsg[96],
    JobID
}

static const RandomJobCP[][JobCP] = {
    {1718.8151,-1600.0669,13.5136, ""embed_orange"[Job] "embed_white"Deliver ammo to the LS-PD!,1"},
    {1721.2325,-1600.5668,13.5469, ""embed_orange"[Job] "embed_white"Deliver ammo to the  City Offices!,2"},
    {1535.6089,-1447.2311,13.3828, ""embed_orange"[Job] "embed_white"Deliver ammo to the civils in Los Santos United Hotel!,3"},
    {-288.2755,1779.3676,42.7398, ""embed_orange"[Job] "embed_white"Deliver drugs to the Drug House!,4"}
};
Reply
#2

When using an enum, you refer to it using the names you specified in the enum as indexes.

pawn Код:
RandomJobCP[3][JobID]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)