i am a okay scripter and these are basic scripts bound to change so here is the itemdatabase script :
@script RequireComponent(PlayerMoney);
string var ItemPrice = 0;
if(ItemPrice < PlayerMoney)
print("You Do Not Have The Money For that Item");
if(ItemPrice > PlayerMoney)
print("You have successfully bought this item");
function OnMouseDown(){
}
and here is the player money script he starts off with no money but here it is :
@script RequireComponent(ItemDataBase);
string var PlayerMoney = 0;
if(ItemPrice < PlayerMoney)
print("You Do Not Have The Money For that Item");
if(ItemPrice > PlayerMoney)
print("You have successfully bought this item");
and i keep getting this error:
Assets/Scripts/PlayerScripts/PlayerMoney.js(2,7): UCE0001: ‘;’ expected. Insert a semicolon at the end.
its asking me to put a semicolon beside string but when i do so it gives me a bunch of errors thank you to anyone who helps