Problem with the car system
#2

I bet this is the problem:
for(new o =0; o<sizeof(OCarInfo); o++)

It maybe create vehicle with invalid modelid.

So you need:
pawn Код:
//TOP
static stock
  OCarAmount;
//
//In LoadCars()
//edit
while (idx < sizeof(OCarInfo))
{ fread(file, strFromFile2);
//to
while(fread(file, strFromFile2){
// and add
OCarAmount = idx; //before
 fclose(file);
//
//OnGameModeInit()
//edit
for(new o =0; o<sizeof(OCarInfo); o++)
//to
for(new o;o < OCarAmount ;o++)
At last, make sure that the file is written with right syntax, no space line, no comment, etc.
Reply


Messages In This Thread
Problem with the car system - by Ro[X]y - 02.07.2009, 23:15
Re: Problem with the car system - by yezizhu - 03.07.2009, 00:14
Re: Problem with the car system - by Ro[X]y - 03.07.2009, 00:22
Re: Problem with the car system - by yezizhu - 03.07.2009, 00:31
Re: Problem with the car system - by Ro[X]y - 03.07.2009, 00:39
Re: Problem with the car system - by yezizhu - 03.07.2009, 00:54
Re: Problem with the car system - by Ro[X]y - 03.07.2009, 00:55
Re: Problem with the car system - by yezizhu - 03.07.2009, 01:04
Re: Problem with the car system - by Ro[X]y - 03.07.2009, 01:09
Re: Problem with the car system - by yezizhu - 03.07.2009, 02:05

Forum Jump:


Users browsing this thread: 4 Guest(s)