[Ajuda] Warning tag mismatch
#6

Quote:
Originally Posted by Firezl
Посмотреть сообщение
Estou utilizando essa funзгo para pegar o valor da variбvel de vida e colete do player, porйm estou obtendo 2 warning nos 2 return do comando abaixo, alguйm pode explicar o porque e ajudar a solucionar ?
Код:
GetPlayerVida(playerid)
{
	return Player[playerid][gVida];
}
GetPlayerColete(playerid)
{
	return Player[playerid][gColete];
}
Exemplo obtido na wiki
PHP код:
// Sets players health to 50 if it was lower than
// 50 before, as soon as he typed /doctor
 
if(strcmp(cmdtext"/doctor"true) == 0)
{
    new 
Float:health;
    
GetPlayerHealth(playerid,health);
    if (
health 50.0)
    {
        
SetPlayerHealth(playerid50.0);
    }
    return 
1;

Isso demonstra que suas variaveis tem que ser Float.
gVida e gColete

Este code pode ser resumido em duas linhas ...
PHP код:
GetPlayerVida(playerid)return Player[playerid][gVida];
GetPlayerColete(playerid)return Player[playerid][gColete]; 
Reply


Messages In This Thread
Warning tag mismatch - by Firezl - 29.10.2017, 03:00
Re: Warning tag mismatch - by ZaHHak - 29.10.2017, 03:25
Re: Warning tag mismatch - by Firezl - 29.10.2017, 03:45
Re: Warning tag mismatch - by C4rtm4n - 29.10.2017, 03:57
Re: Warning tag mismatch - by Firezl - 29.10.2017, 04:16
Re: Warning tag mismatch - by Don_Speed - 29.10.2017, 10:54
Re: Warning tag mismatch - by Dayvison_ - 29.10.2017, 11:52
Re: Warning tag mismatch - by DimaShift - 29.10.2017, 12:21

Forum Jump:


Users browsing this thread: 1 Guest(s)