Jump to content

how could i fix that?


Recommended Posts

i have a problem with db source, i add gaya , and cheque but when i create a character or i have one already , he;s part_main and part_base from db with no armor is 127

look

 O19xvp9.png?1

 

and my code from db is this:

	queryLen = snprintf(queryStr, sizeof(queryStr), 
			"INSERT INTO player%s "
			"(id, account_id, name, level, st, ht, dx, iq, "
			"job, voice, dir, x, y, z, "

			"hp, mp, random_hp, random_sp, stat_point, stamina, part_base, part_main, part_hair, part_sash, gold,gaya, cheque, playtime, "

			"skill_level, quickslot) "
			"VALUES(0, %u, '%s', %d, %d, %d, %d, %d, "
			"%d, %d, %d, %d, %d, %d, %d, "

			"%d, %d, %d, %d, %d, %d, %d, 0, %d, %d, %d, %d, 0 ",
			GetTablePostfix(),
			packet->account_id,
			packet->player_table.name,
			packet->player_table.level,
			packet->player_table.st,
			packet->player_table.ht,
			packet->player_table.dx,
			packet->player_table.iq,
			packet->player_table.job,
			packet->player_table.voice,
			packet->player_table.dir,
			packet->player_table.x,
			packet->player_table.y,
			packet->player_table.z,
			packet->player_table.hp,
			packet->player_table.sp,
			packet->player_table.sRandomHP,
			packet->player_table.sRandomSP,
			// packet->player_table.sHorse_appearance,
			packet->player_table.stat_point,
			packet->player_table.stamina,
			packet->player_table.part_base,
			packet->player_table.part_base,
			packet->player_table.gold
			, packet->player_table.gaya
#ifdef ENABLE_CHEQUE_SYSTEM
			,packet->player_table.cheque
#endif
			);

and as well when i compile it tell me , there are too many arguments for format

thank you.

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.