SA-MP Forums Archive
[Plugin] Pawn.RakNet - 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: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [Plugin] Pawn.RakNet (/showthread.php?tid=640306)

Pages: 1 2 3 4 5 6 7 8 9


Re: Pawn.RakNet - iorp - 22.03.2019

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



Re: Pawn.RakNet - YourShadow - 22.03.2019

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


Re: Pawn.RakNet - iorp - 24.03.2019

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