Properly get string
#5

Quote:
Originally Posted by ArchB42
Посмотреть сообщение
Hope I helped. If you still have problems after that, please show us the portion of code you're trying to run.
Hello Thanks, I already read that one. So as it didn't really help me, here's an example:

I'm creating this:
OnPlayerChangeAnim(playerid, newAnim, oldAnim)


Whenever I want to compare newAnim to an anim, I do this:
Код:
new baseballBat[32];
baseballBat = "BASEBALL_BAT_1";

if(strcmp(baseballBat == newAnim)
{}
Then it tells me that baseballBat in the strcmp should be indexed. When I do baseballBat[0], I get no errors, because it of course is indexed then.
So how do I strcmp the whole String like this? Should I format baseballBat?
Reply


Messages In This Thread
Properly get string - by mads232 - 01.03.2015, 19:14
Re: Properly get string - by Vince - 01.03.2015, 19:15
Re: Properly get string - by mads232 - 01.03.2015, 19:17
Re: Properly get string - by ArchB42 - 01.03.2015, 20:02
Re: Properly get string - by mads232 - 01.03.2015, 20:28
Re: Properly get string - by HazardouS - 01.03.2015, 20:34
Re: Properly get string - by mads232 - 01.03.2015, 20:36
Re: Properly get string - by CalvinC - 01.03.2015, 20:37
Re: Properly get string - by mads232 - 01.03.2015, 20:40
Re: Properly get string - by HazardouS - 01.03.2015, 20:44

Forum Jump:


Users browsing this thread: 1 Guest(s)