error 018 and error 010
#8

Quote:
Originally Posted by Stefand
Посмотреть сообщение
How does it find the MAX_POINTS then?
You added a new checkpoint, so the old value from your MAX_POINTS wont match

Just let the preprocessor handle the job with "[][]" and than you just can do
pawn Код:
new const checkpointType[] = {
    CP_GayExit
};

#define MAX_POINTS (sizeof checkpointType)

stock const Float: checkCoords[MAX_POINTS][] = {
    {394.0296, -31.4441, 1001.8028, 269.9235}
};

stock const Float: checkpoints[MAX_POINTS][] = {
    {394.0296,-31.4441,1001.8028,3.0}
};
Also use const for constant data

My only question is whats the meaning of the checkpointType array and where do you define "CP_GayExit"
Reply


Messages In This Thread
error 018 and error 010 - by Stefand - 01.12.2012, 13:05
Re: error 018 and error 010 - by dr.lozer - 01.12.2012, 13:13
Re: error 018 and error 010 - by dr.lozer - 01.12.2012, 13:15
Re: error 018 and error 010 - by Patrick - 01.12.2012, 13:19
Re: error 018 and error 010 - by Stefand - 01.12.2012, 13:21
Re: error 018 and error 010 - by dr.lozer - 01.12.2012, 13:30
Re: error 018 and error 010 - by Dark Killer - 01.12.2012, 13:34
AW: Re: error 018 and error 010 - by Nero_3D - 01.12.2012, 13:36
Re: error 018 and error 010 - by Stefand - 01.12.2012, 13:52
AW: Re: error 018 and error 010 - by Nero_3D - 01.12.2012, 18:45

Forum Jump:


Users browsing this thread: 1 Guest(s)