[Plugin] Pawn.RakNet

Code:
const GiveOrTake = 115;
IRPC:GiveOrTake(playerid, BitStream:bs)
{
	new data[PR_OnGiveTake];
	BS_IgnoreBits(bs, 8);
	BS_ReadGiveOrTake(BitStream:bs, data);
	printf(
		"GiveOrTake[%d], bGiveOrTake: %d, wPlayerID: %d, damage_amount: %f, dWeaponID: %d, dBodypart: %d",
		playerid,
		data[Pr_bGiveOrTake],
		data[Pr_wPlayerID],
		data[Pr_damage_amount],
		data[Pr_dWeaponID],
		data[Pr_dBodypart]
		);
	return 1;
}
BS_ReadValue output is not as expected? why??
Code:
GiveOrTake[1], bGiveOrTake: 0, wPlayerID: 52480, damage_amount: 0.000000, dWeaponID: 50331648, dBodypart: 0
Reply

Quote:
Originally Posted by iorp
View Post
Code:
BS_IgnoreBits(bs, 8);
Remove this line.
Reply

Quote:
Originally Posted by YourShadow
View Post
Remove this line.
Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)