Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by k_ivan. 04/25/26 19:13
ZorroGPT
by TipmyPip. 04/25/26 16:09
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Quad, 1 invisible), 3,713 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
valino, juergenwue, VladMak, Geir, ondrej
19209 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
String Vergleich funktioniert nicht/ String comparison dont work #293818
10/14/09 02:58
10/14/09 02:58
Joined: Oct 2009
Posts: 14
U
uniquy Offline OP
Newbie
uniquy  Offline OP
Newbie
U

Joined: Oct 2009
Posts: 14
Hello!

i have an little problem with some string comparsions.
just want to compare 2 strings.

Quote:
STRING* var_name = "posx";
if(var_name == _str("posx")){
testbox.x = 2500;
}


with _str() i tryd to convert the char "posx" into an string, to compare. but he never goes inside the if!

i come from purly c++ laugh dont understand, and in the manual are only var-compares.



Hello!

Ich habe da ein kleines Problem mit einem String vergleich.

Quote:
STRING* var_name = "posx";
if(var_name == _str("posx")){
testbox.x = 2500;
}


Mit _str() versuche ich "posx" in einen String zu konvertieren, aber er läuft einfach nicht in die if rein.

Habe besher nur rohes C++ Programmiert. Deshalb bin ich ein wenig unbeholfen grin

Last edited by uniquy; 10/14/09 02:59.
Re: String Vergleich funktioniert nicht/ String comparison dont work [Re: uniquy] #293819
10/14/09 03:10
10/14/09 03:10
Joined: Feb 2009
Posts: 84
Deutschland/Niedersachsen
GorNaKosh Offline
Junior Member
GorNaKosh  Offline
Junior Member

Joined: Feb 2009
Posts: 84
Deutschland/Niedersachsen

Re: String Vergleich funktioniert nicht/ String comparison dont work [Re: GorNaKosh] #293821
10/14/09 03:20
10/14/09 03:20
Joined: Oct 2009
Posts: 14
U
uniquy Offline OP
Newbie
uniquy  Offline OP
Newbie
U

Joined: Oct 2009
Posts: 14
danke!!
*ich hab gelacht* grin
oh man, ne extra Funktion zum vergleichen, da vermisst man wirklich C++...
hab die schon im Manual gesehen und gedacht das wäre eine erweiterte Vergleichsfunktion, um die Genauigkeit der Übereinstimmung herauszufinden.. naja zu weit gedacht.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1