Colete nгo aparece? -
SkullFire - 19.08.2013
Coloquei essa funзгo no onplayerupdate:
Код:
new Float:colete;
GetPlayerArmour(playerid,colete);
if(colete>1)
{
SetPlayerAttachedObject(playerid,2,19515,1,0.068999,0.037000,-0.001000,0.000000,0.000000,0.000000,0.972000,1.147000,1.099000);
}
if(colete<1)
{
RemovePlayerAttachedObject(playerid,2);
}
Mas nгo esta aparecendo o colete no player .
Re: Colete nгo aparece? -
silenthill - 19.08.2013
tente:
pawn Код:
stock AtualizarInfos(playerid){
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
new plrIP[16];
new Float:vida;
GetPlayerHealth(playerid, vida);
new Float:colete;
GetPlayerArmour(playerid, colete);
GetPlayerIp(playerid, plrIP, sizeof(plrIP));
new string[256];
TextDrawSetString(statu[playerid], string);
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
return 1;
}
Re: Colete nгo aparece? -
SkullFire - 19.08.2013
Isso nгo tem nada a ver mano .
Re: Colete nгo aparece? -
DannielCooper - 19.08.2013
certeza absoluta?
pawn Код:
GetPlayerArmour(playerid, colete);
Sу um de vossos codes acima.
Re: Colete nгo aparece? -
SkullFire - 19.08.2013
Й , mas eu boto a stock , e depois ?
Re: Colete nгo aparece? -
DannielCooper - 19.08.2013
Atualiza seu code do colete com as funзхes da stock.
Re: Colete nгo aparece? -
SkullFire - 19.08.2013
Quote:
Originally Posted by DannielCooper
Atualiza seu code do colete com as funзхes da stock.
|
Nгo sei mecher com stock, da pra ajudar ?e.e
Re: Colete nгo aparece? -
DannielCooper - 19.08.2013
stock й a mesma coisa de uma callback, sу que nгo precisa de uma definiзгo como forward. Ao meu ponto de vista.