Luffy 9 Posted December 25, 2022 Share Posted December 25, 2022 error when trying to add 4 Inventories Client closes Error part of syserr client files TMP4 1224 20:44:22452 :: networkModule.py(line:208) SetSelectCharacterPhase system.py(line:130) __pack_import system.py(line:110) _process_result introSelect.py(line:30) <module> system.py(line:130) __pack_import system.py(line:110) _process_result interfaceModule.py(line:12) <module> system.py(line:130) __pack_import networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:unindent does not match any outer indentation level (uiInventory.py, line 313) 1224 20:44:22453 :: ============================================================================================================ 1224 20:44:22453 :: Abort!!!! “To be humble with superiors is duty, with equals is courtesy, with inferiors is nobility.” Benjamin Franklin Por favor, desative seu AdBlock quando usar meus links de download. Please, disable your AdBlock when use my download links. Me AdBlock On: Adblock Off: Link to comment Share on other sites More sharing options...
caanmasu 322 Posted December 25, 2022 Share Posted December 25, 2022 When edit Python files you should setup a comfortable environment. 1. Edit files with Notepad++ (do predeterminated) 2. Select language (if it is not selected) from Language->P->Python 3. Visible characters from View->Show symbol->Show spaces and tabulations Now edit your file. Notepad++ in Python set default 4 spaces as tab. Modify your file normally. When you end edit file, do it: Edit->Cleaning operations->Space to TAB (all) What means indentation? Indentation refers to the spaces at the beginning of a code line. Where in other programming languages the indentation in code is for readability only, the indentation in Python is very important. Python uses indentation to indicate a block of code. From w3schools Tab are very important in Python. Good example of indentation: def test(): import chat chat.AppendChat(chat.CHAT_TYPE_INFO, "Test 1"); 1° Bad example of indentation: def test(): import chat chat.AppendChat(chat.CHAT_TYPE_INFO, "Test 1"); 2° Bad example of indentation: def test(): import chat chat.AppendChat(chat.CHAT_TYPE_INFO, "Test 1"); 3° Bad example of indentation: def test(): import chat chat.AppendChat(chat.CHAT_TYPE_INFO, "Test 1"); Look difference between dot and tab. 1 Link to comment Share on other sites More sharing options...
Luffy 9 Posted December 25, 2022 Author Share Posted December 25, 2022 1 hour ago, caanmasu said: When edit Python files you should setup a comfortable environment. 1. Edit files with Notepad++ (do predeterminated) 2. Select language (if it is not selected) from Language->P->Python 3. Visible characters from View->Show symbol->Show spaces and tabulations Now edit your file. Notepad++ in Python set default 4 spaces as tab. Modify your file normally. When you end edit file, do it: Edit->Cleaning operations->Space to TAB (all) What means indentation? Indentation refers to the spaces at the beginning of a code line. Where in other programming languages the indentation in code is for readability only, the indentation in Python is very important. Python uses indentation to indicate a block of code. From w3schools Tab are very important in Python. Good example of indentation: def test(): import chat chat.AppendChat(chat.CHAT_TYPE_INFO, "Test 1"); 1° Bad example of indentation: def test(): import chat chat.AppendChat(chat.CHAT_TYPE_INFO, "Test 1"); 2° Bad example of indentation: def test(): import chat chat.AppendChat(chat.CHAT_TYPE_INFO, "Test 1"); 3° Bad example of indentation: def test(): import chat chat.AppendChat(chat.CHAT_TYPE_INFO, "Test 1"); Look difference between dot and tab. Thank you I managed to solve “To be humble with superiors is duty, with equals is courtesy, with inferiors is nobility.” Benjamin Franklin Por favor, desative seu AdBlock quando usar meus links de download. Please, disable your AdBlock when use my download links. Me AdBlock On: Adblock Off: Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now