Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 01:42

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



global name 'True' is not defined

Discussion on global name 'True' is not defined within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1

 
elite*gold: 83
Join Date: Nov 2013
Posts: 2,891
Received Thanks: 2,764
global name 'True' is not defined

Habe ein Problem mit dem True-Wert in einem kleinen Script.
Wenn ich es im Python-Simulator ( )
durchlaufen lasse klappt es, aber sobald ich es einfüge geht es nicht mehr.

Hier der Teil des Codes:
PHP Code:
if text[13:15].isdigit() == True
rollback is offline  
Old 02/19/2015, 21:26   #2
 
DasSchwarzeT's Avatar
 
elite*gold: 399
Join Date: Sep 2011
Posts: 5,323
Received Thanks: 3,938
lass dass == True einfach weg sprich
PHP Code:
if text[13:15].isdigit(): 
DasSchwarzeT is offline  
Thanks
1 User
Old 02/19/2015, 21:28   #3


 
elite*gold: 0
Join Date: Feb 2010
Posts: 7,221
Received Thanks: 6,758
Das liegt daran, dass die Namen "True", "TRUE", und "true" alle unterschiedlich interpretiert werden aufgrund der Case-Sensibilität. Entweder du machst überall aus jedem True und False ein true und false oder du entfernst das == True direkt überall.
#SoNiice is offline  
Thanks
1 User
Old 02/19/2015, 21:57   #4

 
elite*gold: 83
Join Date: Nov 2013
Posts: 2,891
Received Thanks: 2,764
Danke euch beiden, läuft jetzt alles
mich würde gerne mal interessieren wie das auf einem Live-Server läuft. Wenn jemand einen hat würde ich gerne wissen, ob man Probleme damit hat (kick oder so) wenn man das macht.
rollback is offline  
Reply


Similar Threads Similar Threads
lpShortCut not defined.
12/12/2013 - Flyff Private Server - 1 Replies
Goodmorning Elitepvpers, Well for the first time i am going to use an source with v19 interface. So i have succesfully build the source and it plays normaly However something is wrong with the Taskbar slider When i choose logout and then quit i dont have any problems But as i choose quit instead of logout the neuz is crashing and it gives the following error
NT_LoadConfig(61) is not defined
03/05/2011 - Diablo 2 - 3 Replies
wie ihr dem topic entnehmen könnt ^^ da liegt mein prob ... wollte mit ner amazone von meinem bruder leechen, in der config von der is nur leider in zeile 61 nix bzw "//###########rest##########" kp woran es liegt haben auch schon geguckt ob wir in der datei irgendwas ausversehen gelöscht haben oder n fehler also datei neu ausgefüllt aber immernoch keine besserung was kann man tun? Edit: glaube er bezieht sich doch eher auf die NTBotGame.ntj :D .... vllt weil leader und leecher auf...
NT_LoadConfic is not defined
03/28/2010 - Diablo 2 - 4 Replies
Kann mir jemand sagen was das für ein Fehler ist? Bot geht ins Game und dann kommt diese Fehlermeldung.



All times are GMT +2. The time now is 01:42.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.