Help me fix this warning please!
#1

C:\Users\Sale\Desktop\Fort Carson RolePlay (FC)\FCRP\gamemodes\fcrp.pwn(7252) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.


public OnPlayerUpdate(playerid)
{
new Float:weaponid;
new Float:amount;
new Float:health;
GetPlayerHealth(playerid,health);
if (health < 40.0 && IsHurt[playerid] == 0)
{
TogglePlayerControllable(playerid, false);
IsHurt[playerid] = 1;
ApplyAnimation(playerid,"PED","KO_skid_front",4.1, 0,1,1,1,1,1);
ApplyAnimation(playerid,"PED","KO_skid_front",4.1, 0,1,1,1,1,1);
new string[64];
new weaponName[24];
LINE 7252 GetWeaponName(weaponid, weaponName, sizeof (weaponName));
format(string,sizeof(string),"(( Was hit %d times, Weapon: %s ))",amount, weaponName);
new Text3D:wounded;
wounded = Create3DTextLabel(string, 0xAA3333AA, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(wounded, playerid, 0.0, 0.0, 0.7);
}
if (health > 39.0 && IsHurt[playerid] == 1)
{
IsHurt[playerid] = 0;
TogglePlayerControllable(playerid, true);
ClearAnimations(playerid);
}
return 1;
}
Reply
#2

Код:
C:\Users\Sale\Desktop\Fort Carson RolePlay (FC)\FCRP\gamemodes\fcrp.pwn(7252) : warning 213: tag mismatch
uhm, what is the 7252 line?
Reply
#3

LINE 7252 GetWeaponName(weaponid, weaponName, sizeof (weaponName));
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)