SA-MP Forums Archive
Giveplayermoney - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Giveplayermoney (/showthread.php?tid=600735)



Giveplayermoney - Karolukas123 - 12.02.2016

hey, why i don't lose all money, and to other player not adding money


Код:
}
CMD:fight(playerid, params[])
{
	new ID, Monge, msg[125];
    if(sscanf(params,"ud",ID,Monge)) return SendClientMessage(playerid,-1,"/fight V_P MONEY");
    if(ID == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "NO THAT PLAYER IN SERVER");
	Monge = GameMoney;
	
	
	GivePlayerMoneyA(playerid, -GameMoney);
	GivePlayerMoneyA(id, GameMoney);



Re: Giveplayermoney - fuckingcruse - 12.02.2016

Gamemoney = monge. Anway I asked them same doubt let them answer.


Re: Giveplayermoney - SickAttack - 12.02.2016

Change 'Monge = GameMoney;' to 'GameMoney = Monge'.


Re: Giveplayermoney - Karolukas123 - 12.02.2016

ye.. thank you