[CODE] if statements with strings
#2

Man, I understand what you trying to do.. in other languages that would work a think, at least some of it

Код:
format(Bravura, sizeof(Bravura), "Bravura");
format(Glendable, sizeof(Glendale), "Glendale");    // this instead the "=" operator to give them a value
Then you have to do the same thing for carName
Код:
format(carName, sizeof(carName), "%s", params);
And to compare the two, you use
Код:
strcmp(Glendale, carName, true);   //and not the "=="
Hope I helped you somehow
Reply


Messages In This Thread
[CODE] if statements with strings - help please - by squomp - 05.04.2012, 11:32
Re: [CODE] if statements with strings - help please - by DR3AD - 05.04.2012, 12:01
Re: [CODE] if statements with strings - by squomp - 05.04.2012, 12:09
Re: [CODE] if statements with strings - by DR3AD - 05.04.2012, 12:20
Re: [CODE] if statements with strings - by Harish - 05.04.2012, 12:21
Re: [CODE] if statements with strings - by squomp - 05.04.2012, 12:34
Re: [CODE] if statements with strings - by squomp - 05.04.2012, 12:42

Forum Jump:


Users browsing this thread: 1 Guest(s)