samerton / Nameless-Resources

Resources module for NamelessMC v2
MIT License
10 stars 13 forks source link

Error while creating a new resource #52

Closed PadowYT2 closed 2 years ago

PadowYT2 commented 2 years ago

image

Info: PHP 7.4 NamelessMC v2 Pre12

samerton commented 2 years ago

Can you please run the following MySQL command:

ALTER TABLE nl2_resources ALTER icon_updated SET DEFAULT '0';
PadowYT2 commented 2 years ago

image

PadowYT2 commented 2 years ago

heres without a command image

samerton commented 2 years ago

@PadowYT2 In that case, using phpMyAdmin, you can set the default value to 0

PadowYT2 commented 2 years ago

nope, it automaticly changes to 11 when i set to 0 and upload a resource

samerton commented 2 years ago

Could you please show me the updated version of https://user-images.githubusercontent.com/71085027/137686397-98a7b795-c522-4394-a989-e10d5e2bc103.png

this time with the default value updated to 0

PadowYT2 commented 2 years ago

https://user-images.githubusercontent.com/71085027/137690963-049c33bb-a5f4-41da-9c58-202d1a93ffa0.mp4

samerton commented 2 years ago

Thanks for the video - it's the Default field which is next to Length/Values which needs updating

IIRC the option from the Default dropdown is "As Defined", then in the text field which appears, enter 0

PadowYT2 commented 2 years ago

oh, sry for being stupid, it works now, thanks