How to remove this damn warning 213: tag mismatch
#1

So i made AC for my GM and started using my stock
PHP код:
stock SetDodHealth(playeridamount)
{
    
PlayerInfo[playerid][pHealth] = amount;
    return 
1;

instrad of SetPlayerHealth, but whenever i have in my script SetDodHealth(playerid, SOMETHING INSTEAD OF NUMBERS like minigamehp);
i get this damn warning, how can i fix this ?
Reply
#2

Is pHealth a float value? If so, change the "amount" to "Float: amount". Like this:

pawn Код:
stock SetDodHealth(playerid, Float: amount)
{
    PlayerInfo[playerid][pHealth] = amount;
    return 1;
}
Reply
#3

Thanks buddy
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)