How to set limited for sellveh - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to set limited for sellveh (
/showthread.php?tid=70649)
How to set limited for sellveh -
speedy199 - 26.03.2009
I use CarOwnership system But found problem, you can help me?
problem is /sellveh [unlimited money] ,I want to have limited money have bellow 1 or 800000
This pastebin ==
http://pastebin.com/m5fc3d8f
Re: How to set limited for sellveh -
Rks25 - 26.03.2009
just make simple if() statement with tmp.
Re: How to set limited for sellveh -
speedy199 - 26.03.2009
Quote:
|
Originally Posted by Rk_
just make simple if() statement with tmp.
|
you have script for example ?
Re: How to set limited for sellveh -
Dreftas - 26.03.2009
Quote:
|
Originally Posted by speedy199
Quote:
|
Originally Posted by Rk_
just make simple if() statement with tmp.
|
you have script for example ?
|
pawn Код:
if(insertedmoneyinchat > 800000 || insertedmoneyinchat < 1) {
SendClientMessage(playerid,color,"Car sell price 1-800000"); }
else {
// do something else if in chat player writed number 1-800000
}
|| means
or, so it will be, if player inserted in chat > 800000
or inserted in chat < 1) { ....
Oh.. im bad teacher
Re: How to set limited for sellveh -
speedy199 - 26.03.2009
Quote:
|
Originally Posted by Dreftas
Quote:
|
Originally Posted by speedy199
Quote:
|
Originally Posted by Rk_
just make simple if() statement with tmp.
|
you have script for example ?
|
pawn Код:
if(insertedmoneyinchat > 800000 || insertedmoneyinchat < 1) { SendClientMessage(playerid,color,"Car sell price 1-800000"); } else { // do something else if in chat player writed number 1-800000 }
|| means or, so it will be, if player inserted in chat > 800000 or inserted in chat < 1) { ....
Oh.. im bad teacher 
|
I'm sorry. I don't understand " insertedmoneyinchat " i need for example.
Re: How to set limited for sellveh -
MenaceX^ - 26.03.2009
I didn't see the code but you can use this.. Easier to understand, though.
[pawn]
if(strval(tmp)>80000||strval(cmd)<1) return SendClientMessage(playerid,color,"You can't sell a car for above 80k$ or above 1$.");
Re: How to set limited for sellveh -
speedy199 - 27.03.2009
Ok,can sell in limited. But, don't show messenger bellow 1 or 800000
This pastebin =
http://pastebin.com/m3550fd4f
--------------------------------------------------
I'm sorry for english my bad