Tok124
Respected Member
Hello,
I am making a Item Store on my website with SOAP so when you buy item the item will be sent ingame to the players mailbox and dp will reduce.
That is working with my script. However, If i have 0 DP (Value NULL) in account table and then i buy item then the item is still sent ingame and value for column dp is still NULL. How can i add an error text so that if the value is not reduced it will display "Sorry, You don't have enough points" or something?
I am making a Item Store on my website with SOAP so when you buy item the item will be sent ingame to the players mailbox and dp will reduce.
That is working with my script. However, If i have 0 DP (Value NULL) in account table and then i buy item then the item is still sent ingame and value for column dp is still NULL. How can i add an error text so that if the value is not reduced it will display "Sorry, You don't have enough points" or something?
Last edited: