SA-MP Forums Archive
A little help please - 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: A little help please (/showthread.php?tid=639616)



A little help please - Puff - 20.08.2017

Код:
new price = GetPVarInt(i, "Contract");
			if(price != 0) {
				format(query, sizeof(query), "%d. %s[%d]: $%d",++n,GetPlayerNameEx(i, ENameType_RPName_NoMask),i,price);
				SendClientMessage(playerid, COLOR_LIGHTBLUE, query);
here the price is defined as what the user will put as the price.. but when I complete that I dont get my money..


Re: A little help please - 10MIN - 20.08.2017

Where do you give the user the money?


Re: A little help please - Puff - 20.08.2017

Quote:
Originally Posted by 10MIN
Посмотреть сообщение
Where do you give the user the money?
Код:
format(query, sizeof(query), "%d. %s[%d]: $%d",++n,GetPlayerNameEx(i, ENameType_RPName_NoMask),i,price);
here in the end, price. price = what user will put it as how much they want.


Re: A little help please - 10MIN - 20.08.2017

But there is nothing that gives him money, man...
You need to use GivePlayerMoney(playerid, [MONEY TO GIVE]) if you use "clasic" money system , or whatever function your script have for giving a player money...