11.03.2012, 10:11
After searching this thread about my problem, I couldn't find an answer so I'm posting this here.
The problem is that the sscanf function line return an error:
I know that there are too many arguments given to the function but how do I add a second sscanf to parse the remaining info?
Using this to parse the last integer wouldn't work, because it would parse the first:
Any ideas?
Код:
while (mysql_fetch_row(data, "|")) { new tempCar[vInfo]; sscanf(data, "p<|>ddddffffddddddddddddddddddd", tempCar[vID], tempCar[vOwner], tempCar[vModel], tempCar[vLock], tempCar[vX], tempCar[vY], tempCar[vZ], tempCar[vRot], tempCar[vC1], tempCar[vC2], tempCar[vOdometer], tempCar[vMods][0], tempCar[vMods][1], tempCar[vMods][2], tempCar[vMods][3], tempCar[vMods][4], tempCar[vMods][5], tempCar[vMods][6], tempCar[vMods][7], tempCar[vMods][8], tempCar[vMods][9], tempCar[vMods][10], tempCar[vMods][11], tempCar[vMods][12], tempCar[vMods][13], tempCar[vPaintJob], tempCar[vRadioID]); vehSpawn(tempCar); }
Код:
error 075: input line too long (after substitutions)
Using this to parse the last integer wouldn't work, because it would parse the first:
Код:
sscanf(data, "p<|>d", tempCar[vRadioID]);