08.03.2015, 19:35
Hi,
I have a problem with buying insurance points.First when i start the server,i log in.And i type: "/cars" i select "Buy Insurance" and if i type "11"(points).I get a message that i can't get more then 10..all good.I get "10" points ,and when i try to buy again 1 point or more,i can't because i already have 10.After i destroy my vehicle,the vehicle points are now 9.Here is the problem,after i buy 10 points and destroy the car.I have 9 points,and if i try to buy 10 points.i can,10+10+10+10 how much times i want...
I tried to make it ,but i don't know how.I want that if you have example: "5"(points),you can't get more then 5 till the limit of 10/10.
Code: http://pastebin.com/gYUBfdJd
I have a problem with buying insurance points.First when i start the server,i log in.And i type: "/cars" i select "Buy Insurance" and if i type "11"(points).I get a message that i can't get more then 10..all good.I get "10" points ,and when i try to buy again 1 point or more,i can't because i already have 10.After i destroy my vehicle,the vehicle points are now 9.Here is the problem,after i buy 10 points and destroy the car.I have 9 points,and if i try to buy 10 points.i can,10+10+10+10 how much times i want...
I tried to make it ,but i don't know how.I want that if you have example: "5"(points),you can't get more then 5 till the limit of 10/10.
Code: http://pastebin.com/gYUBfdJd