So I have managed to prevent players from purchasing additional packages should they have a purchase amount greater or equal to the package's max purchase.
Code:
if (package.MaxPurchase != -1)
if (amountpurchased >= package.MaxPurchase)
{
WriteErrorLine("You cannot purchase this package anymore!");
return;
}
The code works correctly and when a player exceeds the purchase maximum:
[why is it pink? can I change it on the server?]
But why can't I use,
Code:
if (package.MaxPurchase != -1)
if (amountpurchased >= package.MaxPurchase)
{
wtr.Write("<Error>This package is not available anymore</Error>");
return;
}
To display in the client with that box dialogue?
When I do use this it says "Purchase successful" and I get notified that new gifts are in my vault.
This must be something client-side surely??

Is the 'error' tag useless?
PS: why is it everytime I edit a big blank box appears below? :S