Problem in my vehicle system.
#3

Quote:
Originally Posted by Mean
Посмотреть сообщение
I recommend you use native SQL functions instead of sscanf, the order of fields when using sscanf is very important.

You need to do:
pawn Код:
sscanf("p<|>siiiiiis[15]fffii", vInfo[v][INFO GOES HERE], vInfo[v][INFO GOES HERE], etc.);
You can't just do it all in one part of an array. Also: there's a string without string size.
Like this?
pawn Код:
sscanf("p<|>isiiiiiisfffii", vInfo[v][vModel], vInfo[v][vOwner], vInfo[v][vLocked], vInfo[v][vLock], vInfo[v][vAlarm], vInfo[v][vInsurance], vInfo[v][vColor1], vInfo[v][vColor2], vInfo[v][vPlate], vInfo[v][vX], vInfo[v][vY], vInfo[v][vZ], vInfo[v][vOwned], vInfo[v][vID]);
When I run the server it says:
Код:
sscanf warning: Format specifier does not match parameter count.
Reply


Messages In This Thread
Problem in my vehicle system. - by printer - 14.01.2012, 13:27
Re: Problem in my vehicle system. - by Mean - 14.01.2012, 13:30
Re: Problem in my vehicle system. - by printer - 14.01.2012, 13:38
Re: Problem in my vehicle system. - by Mean - 14.01.2012, 14:06
Re: Problem in my vehicle system. - by printer - 14.01.2012, 15:58
Re: Problem in my vehicle system. - by Mean - 14.01.2012, 16:00
Re: Problem in my vehicle system. - by Mean - 14.01.2012, 16:03
Re: Problem in my vehicle system. - by printer - 14.01.2012, 16:32
Re: Problem in my vehicle system. - by Mean - 14.01.2012, 16:56
Re: Problem in my vehicle system. - by printer - 14.01.2012, 17:31

Forum Jump:


Users browsing this thread: 1 Guest(s)