SA-MP Forums Archive
sscanf problem select and load. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: sscanf problem select and load. (/showthread.php?tid=586975)



sscanf problem select and load. - Invizion - 26.08.2015

Load from db table Weapons.

Код:
new cartrunk[4];
		cartrunk[0] = playerVariables[extraid][pCarID1];
		cartrunk[1] = playerVariables[extraid][pCarID2];
		cartrunk[2] = playerVariables[extraid][pCarID3];
		cartrunk[3] = playerVariables[extraid][pCarID4];
and
Код:
cache_get_field_content(0, "CarTrunk1", result); playerVariables[extraid][cTrunk1] = strval(result);
       	sscanf( result, "p<|>iiiiiiiiiiii", tWeapon[cartrunk[0]][0], tAmmo[cartrunk[0]][0], tWeapon[cartrunk[0]][1],
                                     tAmmo[cartrunk[0]][1], tWeapon[cartrunk[0]][2], tAmmo[cartrunk[0]][2],
									 tWeapon[cartrunk[0]][3],tAmmo[cartrunk[0]][3], tWeapon[cartrunk[0]][4],
									 tAmmo[cartrunk[0]][4], tWeapon[cartrunk[0]][5], tAmmo[cartrunk[0]][5]);
No problem with compiler not give error no warn...
Problem is, everything what is below the above code not loads everything it stops.


Sorry for my bad english