24.07.2018, 10:36
Hi guys, I have a question. What is failing in this code? it gives me an error...
i dont know use SendBulletData, could someone teach me to use the code??
i dont know use SendBulletData, could someone teach me to use the code??
PHP код:
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;
}
PHP код:
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.