Jump to content

military flamethrower

Work in Progress 1.2.0

Reder
Reder

Posted

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

David

Posted

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.

David

Posted

Changed Status from Pending to Work in Progress

ninco90

Posted (edited)

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
  • Like 1
1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.4k

Files Sold

Total number of files sold.

2m

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.