Compile errors and warnings.
#1

Hey guys ! Can someone help me with these errors and warnings ? Thanks.

Errors :
pawn Код:
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(201) : error 017: undefined symbol "V_ENUM_DATA"
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(201) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(22977) : warning 213: tag mismatch
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(22978) : warning 213: tag mismatch
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(22979) : warning 213: tag mismatch
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(22980) : warning 213: tag mismatch
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(22981) : warning 213: tag mismatch
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(22982) : warning 213: tag mismatch
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(22983) : warning 213: tag mismatch
Errors Line :
pawn Код:
new vehcount = 0; // This is the line.
new VehicleInfo[9999][V_ENUM_DATA];
enum V_ENUM_DATA
    {
        model,          Float:x_spawn,
        Float:y_spawn,  Float:z_spawn,
        Float:za_spawn, color_1,
        color_2,        spawned,
        idnum,
    };
Warnings Lines:
pawn Код:
stock AddStreamingVehicle(modelid,Float:x,Float:y,Float:z,Float:a,col1,col2)
{
    vehcount++;
    VehicleInfo[vehcount][model] = modelid; // Line 22977.
    VehicleInfo[vehcount][x_spawn] = x; // Line 22978.
    VehicleInfo[vehcount][y_spawn] = y; // Line 22979.
    VehicleInfo[vehcount][z_spawn] = z; // Line 22980
    VehicleInfo[vehcount][za_spawn] = a; // Line 22981.
    VehicleInfo[vehcount][color_1] = col1; // Line 22982.
    VehicleInfo[vehcount][color_2] = col2; // Line 22983.
    return 1;
}
Thanks.
Reply
#2

1st. put this under the enum
pawn Код:
new VehicleInfo[9999][V_ENUM_DATA];
i think this should be
pawn Код:
new VehicleInfo[MAX_VEHICLES][V_ENUM_DATA];
and the use vehicleid?
Reply
#3

Try this:
pawn Код:
enum V_ENUM_DATA
    {
        model,          Float:x_spawn,
        Float:y_spawn,  Float:z_spawn,
        Float:za_spawn, color_1,
        color_2,        spawned,
        idnum,
    };
new vehcount = 0; // This is the line.
new VehicleInfo[9999][V_ENUM_DATA];
Reply
#4

Thanks.Worked.No errors/warnings.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)