Problem - tag mismatch
#1

i have made this code:
Код:
CMD:hug(playerid,params[])
{
	new health;
	if(health < 100)
	{
		new Index;
		new tmp[128];  tmp  = strtok(params,Index);
		new player1 = strval(tmp);
                GetPlayerHealth(player1, health); // the problem is this
		SetPlayerHealth(player1, health + 25);
		SendClientMessage(playerid, 0xFFFFFF, "You gave a player a hug");
		return 1;
	}
}
i always get this warning: "tag mismatch" what have i done wrong
Reply
#2

use this
pawn Код:
CMD:hug(playerid,params[])
{
    new Float:health;
    if(health < 100)
    {
        new Index;
        new tmp[128];  tmp  = strtok(params,Index);
        new player1 = strval(tmp);
                GetPlayerHealth(player1, health); // the problem is this
        SetPlayerHealth(player1, health + 25);
        SendClientMessage(playerid, 0xFFFFFF, "You gave a player a hug");
        return 1;
    }
}
Reply
#3

Thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)