warning 213: tag mismatch - Script isn't working
#1

Hello Folks,
first of all I'm a german student and it could be, that my school English is one of the worst you've ever read, please excuse me therefor.

Now I'll explain you my problem.
I've copied the Function below out of another board(I can't remenber that one) today I wanted to use it the first time, and get some "tag mismatch"-warnings.
As many others I thought, that it wouldn't be a problem 'cause it's just a warning. But I was wrong... actually the function isn't working..
Could you explain me, why in case of pHealth there is a "tag mismatch"?
Код:
stock GivePlayerHealth(playerid, ammount)
{
	new float:pHealth;
	GetPlayerHealth(playerid, pHealth);
	SetPlayerHealth(playerid, pHealth + ammount);
	return 1;
}
Grateful
D3nnis
Reply
#2

Код:
stock GivePlayerHealth(playerid, ammount)
{
	new float:pHealth;
	GetPlayerHealth(playerid, pHealth);
	SetPlayerHealth(playerid, pHealth + ammount);
	return 1;
}
Maybe it means it expects to see
Код:
stock GivePlayerHealth(playerid, ammount, pHealth)
Reply
#3

Quote:
Originally Posted by Mr_FinnigaN
Код:
stock GivePlayerHealth(playerid, ammount, pHealth)
But why should I pass the healt when I can appraise it?
Reply
#4

It's Float not float, and you forgot the tag of the function parameter.
Reply
#5

You're right, the small float was the problem.
Thank you very much!

I was used to write it in small letters by the "C" language.

Until my next problem :P
Thankful
D3nnis

P.S. Topic can be closed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)