Tag Mismatch - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Tag Mismatch (
/showthread.php?tid=160360)
Tag Mismatch -
Venturas - 16.07.2010
Код:
public Smoking(playerid)
{
new float:fHealth;
new string[180];
GetPlayerHealth(playerid, fHealth);
if (fHealth < 75.00)
{
format(string, sizeof(string), "* %s taps on his cigarrete and finishes it off", GetPlayerNameEx(playerid));
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
IsSmoking[playerid] = 0;
SetPlayerHealth(playerid, fHealth+25);
}
else
{
SendClientMessage(playerid, COLOR_RED, "[Info:] You're health is so good that the cigarrette damages it!");
SetPlayerHealth(playerid, fHealth+10);
IsSmoking[playerid] = 0;
}
return 1;
}
everything that has "fHealth" in it is giving me "Warning: Tag Mismatch"
Re: Tag Mismatch -
Kar - 16.07.2010
pawn Код:
public Smoking(playerid)
{
new Float:fHealth;
new string[180];
GetPlayerHealth(playerid, fHealth);
if (fHealth < 75.00)
{
format(string, sizeof(string), "* %s taps on his cigarrete and finishes it off", GetPlayerNameEx(playerid));
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
IsSmoking[playerid] = 0;
SetPlayerHealth(playerid, fHealth+25);
}
else
{
SendClientMessage(playerid, COLOR_RED, "[Info:] You're health is so good that the cigarrette damages it!");
SetPlayerHealth(playerid, fHealth+10);
IsSmoking[playerid] = 0;
}
return 1;
}
your new float didnt have cap F.
Re: Tag Mismatch -
Venturas - 16.07.2010
Quote:
Originally Posted by Kar
pawn Код:
public Smoking(playerid) { new Float:fHealth; new string[180]; GetPlayerHealth(playerid, fHealth); if (fHealth < 75.00) { format(string, sizeof(string), "* %s taps on his cigarrete and finishes it off", GetPlayerNameEx(playerid)); ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); IsSmoking[playerid] = 0; SetPlayerHealth(playerid, fHealth+25); } else { SendClientMessage(playerid, COLOR_RED, "[Info:] You're health is so good that the cigarrette damages it!"); SetPlayerHealth(playerid, fHealth+10); IsSmoking[playerid] = 0; } return 1; }
your new float didnt have cap F.
|
thanks .............................
Re: Tag Mismatch -
Kar - 16.07.2010
why must you be all like ............................. -.0