How to set limited for sellveh
#1

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
Reply
#2

just make simple if() statement with tmp.
Reply
#3

Quote:
Originally Posted by Rk_
just make simple if() statement with tmp.
you have script for example ?
Reply
#4

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
Reply
#5

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.
Reply
#6

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$.");
Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)