Race System
#2

pawn Код:
for(new c=0; c < RaceInfo[x][TotalCP]; c++)
            {
                format(string, sizeof string, "CP_%d_PosX", c); CPCoords[c][0] = dini_Float(RacePath2(x), string);
                format(string, sizeof string, "CP_%d_PosY", c); CPCoords[c][1] = dini_Float(RacePath2(x), string);
                format(string, sizeof string, "CP_%d_PosZ", c); CPCoords[c][0] = dini_Float(RacePath2(x), string);
            }
I saw potential mistakes here.
CPCoords[c][0]=...
CPCoords[c][1]=...
CPCoords[c][0]=... <- [2]?
Also, in my opinion CPCoords[c][0] should look like this CPCoords[x][c][0]. Reason why I think it should be like that is: for each race there are different checpoint's coordinates. So their variable have to be different, they store different values.

I don't think this makes the bug you are saying, but still mistakes.
Reply


Messages In This Thread
Race System - by JaKe Elite - 18.08.2013, 08:40
Re: Race System - by Roko_foko - 18.08.2013, 09:03
Re: Race System - by JaKe Elite - 18.08.2013, 09:04
Re: Race System - by Roko_foko - 18.08.2013, 09:08
Re: Race System - by JaKe Elite - 19.08.2013, 06:40

Forum Jump:


Users browsing this thread: 1 Guest(s)