Jump to content

military flamethrower

Work in Progress 1.2.0

Why is the flamethrower sale/buy not working ? the picture and everything is displayed, but when someone clicks on it it throws this error and the buy option does not appear.

Screenshot_1.png

Screenshot_2.png

Share this comment


Link to comment

Item shortnames are not meant to have empty space in them, at least that's how it was until now. I'll look into it and update the plugin.

Share this comment


Link to comment
Function GiveTo()

if (itemType.Contains("{"))
{
    string[] shortnameSplit = itemType.Split('{');
    itemType = shortnameSplit[0];
}
                
if (itemType.Contains("'")) itemType = itemType.Replace("'", "");

As an idea, it is not the best way to do it but I solved it that way. Then simply add a few single quotes to the item name in the data (Categories and Items).

Example

...
"apple",
"'military flamethrower'",
"apple",
...

At least it works

Edited by ninco90

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

82.1k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.