Error 018 HELP mepls
#1

Quote:

D:\µСЗа»Фґа«Фї 0.3.7\pawno\include\cnr/derby.inc(22) : error 018: initialization data exceeds declared size

Quote:

#define MAX_DERBY_POS 13
enum _derbyPos
{
Float:derbyPos[13],
DerbyCar
}

new Derby[MAX_DERBY_POS][_derbyPos] =
{
{{467.421020, -3711.762939, 2.315244}},
{{391.928283, -3691.387451, 2.317632}},
{{358.083953, -3629.915527, 2.316626}},
{{304.391204, -3661.461669, 2.316264}},
{{402.880126, -3593.677001, 2.317783}},
{{460.838012, -3605.954833, 2.339684}},
{{503.423828, -3686.307617, 2.285591}},
{{480.953369, -3625.396240, 2.315670}},
{{501.349456, -3697.272949, 2.475157}},
{{480.421020, -3709.662597, 2.325065}},
{{397.188659, -3688.722412, 2.321398}},
{{371.705230, -3705.748046, 2.262779}},
{{356.873016, -3759.109863, 2.306581}},
};

helpmepls
Reply
#2

Try to reduce your derby position coordinates.
Reply
#3

EDIT: Tested it, yeah i was wrong. This is working for me:

PHP код:
#define MAX_DERBY_POS 13
enum _derbyPos
{
    
Float:derbyPos[3],
    
DerbyCar
}
new 
Derby[MAX_DERBY_POS][_derbyPos] =
{
    {
467.421020, -3711.7629392.315244},
    {
391.928283, -3691.3874512.317632},
    {
358.083953, -3629.9155272.316626},
    {
304.391204, -3661.4616692.316264},
    {
402.880126, -3593.6770012.317783},
    {
460.838012, -3605.9548332.339684},
    {
503.423828, -3686.3076172.285591},
    {
480.953369, -3625.3962402.315670},
    {
501.349456, -3697.2729492.475157},
    {
480.421020, -3709.6625972.325065},
    {
397.188659, -3688.7224122.321398},
    {
371.705230, -3705.7480462.262779},
    {
356.873016, -3759.1098632.306581},
}; 
Reply
#4

dont work bro

Quote:

#define MAX_DERBY_POS 13
enum _derbyPos
{
Float:derbyPos[13],
DerbyCar
}
new Derby[MAX_DERBY_POS][_derbyPos];

Derby[MAX_DERBY_POS][derbyPos] =
{
{467.421020, -3711.762939, 2.315244},
{391.928283, -3691.387451, 2.317632},
{358.083953, -3629.915527, 2.316626},
{304.391204, -3661.461669, 2.316264},
{402.880126, -3593.677001, 2.317783},
{460.838012, -3605.954833, 2.339684},
{503.423828, -3686.307617, 2.285591},
{480.953369, -3625.396240, 2.315670},
{501.349456, -3697.272949, 2.475157},
{480.421020, -3709.662597, 2.325065},
{397.188659, -3688.722412, 2.321398},
{371.705230, -3705.748046, 2.262779},
{356.873016, -3759.109863, 2.306581},
};
Quote:

D:\µСЗа»Фґа«Фї 0.3.7\pawno\include\cnr/derby.inc(9) : error 010: invalid function or declaration
D:\µСЗа»Фґа«Фї 0.3.7\pawno\include\cnr/derby.inc(24) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#5

How do you fuck up copy and pasting?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)