new rp;
public OnGameModeInit()
{
rp = CreateRNPCPolice ("Officerino", 2);
AddRPOLWaypoint (rp, 2029.42, 1354.34, 10.5);
AddRPOLWaypoint (rp, 2033.55, 1286.21, 10.5);
AddRPOLWaypoint (rp, 2079.03, 1286.00, 10.5);
AddRPOLWaypoint (rp, 2079.02, 1362.08, 10.5);
return 1;
}
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
new Float:nx, Float:ny, Float:nz;
GetPlayerPos(rp, nx, ny, nz);
new Float:tx, Float:ty, Float:tz;
GetPlayerPos(playerid, tx, ty, tz);
SendBulletData(rp, playerid, BULLET_HIT_TYPE_PLAYER, 22, nx, ny, nz, tx, ty, tz, 0.1, 0.1, 0.1, 0.1);
return 1;
}
C:\Users\1320703\Desktop\GTA3\server2\gamemodes\gamemode.pwn(54) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
SendBulletData(rp, playerid, BULLET_HIT_TYPE_PLAYER, 22, nx, ny, nz, tx, ty, tz, 0.1, 0.1, 0.1, 0.1); <----- line 54
native SendBulletData(sender, hitid, hittype, weaponid, Float:fCenterOfHitX, Float:fCenterOfHitY, Float:fCenterOfHitZ, forplayerid = -1);
SendBulletData(rp, playerid, BULLET_HIT_TYPE_PLAYER, 22, nx, ny, nz, tx, ty, tz, 0.1, 0.1, 0.1, -1);
the very last parameter is syncing the bullet data to which player
PHP код:
PHP код:
|
SendBulletData(rp, playerid, BULLET_HIT_TYPE_PLAYER, 22, nx, ny, nz, tx, ty, tz, 0.1, 0.1, 0.1, -1);
C:\Users\1320703\Desktop\GTA3\server2\gamemodes\gamemode.pwn(54) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
Hi friend , SendBulletData is line 54...
PHP код:
|
lol, he wanted to show full function SendBulletData and not on what line is there (facepalm)
|
native SendBulletData(senderid, forplayerid = -1, weaponid, hittype, hitid, Float:fHitOriginX, Float:fHitOriginY, Float:fHitOriginZ, Float:fHitTargetX, Float:fHitTargetY, Float:fHitTargetZ, Float:fCenterOfHitX, Float:fCenterOfHitY, Float:fCenterOfHitZ);
SendBulletData(rp, playerid, weaponid, BULLET_HIT_TYPE_PLAYER, hitid, nx, ny, nz, tx, ty, tz, 0.1, 0.1, 0.1, 0.1);
Okay that's good enough, you're missing the weaponid param, change ur line to this:
PHP код:
|