Tag Mismatch
#1

Код:
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"
Reply
#2

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.
Reply
#3

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 .............................
Reply
#4

why must you be all like ............................. -.0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)