Quote:
Originally Posted by Artista
Quase a mesma lуgica
Vou criar um exemplo, jaja dou edit
#edit
PHP код:
stock GivePlayerMoneyEx(playerid, grana)
{
ResetPlayerMoney(playerid);
SetPVarInt(playerid, #dinheiro, GetPVarInt(playerid, #dinheiro) + grana);
return GivePlayerMoney(playerid, GetPVarInt(playerid, #dinheiro));
}
stock GetPlayerMoneyEx(playerid) return GetPVarInt(playerid, #dinheiro);
stock ResetPlayerMoneyEx(playerid)
{
ResetPlayerMoney(playerid);
SetPVarInt(playerid, #dinheiro, 0);
}
Nгo precisa nem de verificaзгo, pois a grana ilegal nгo terб valor algum
|
O que eu preciso substituir? Pra funcionar?