03.08.2011, 01:01
That one cant be correct since pFactionCar isnt a string
use strval to get an integer out of a string
another strange thing is the idx
it is used as index in CarInfo
but for PlayerInfo you would mostly need some kind of playerid
Also I would put the fread in the while loop so it stops at the end of the file
pawn Код:
strmid(PlayerInfo[idx][pFactionCar], arrCoords[7], 0, strlen(arrCoords[7]), 255);
another strange thing is the idx
it is used as index in CarInfo
but for PlayerInfo you would mostly need some kind of playerid
Also I would put the fread in the while loop so it stops at the end of the file