Properly get string
#6

Hold on a second. That is not the correct strcmp syntax. Do it like this:
pawn Код:
if(!strcmp(baseballBat, newAnim, true)) //true means that we don't care about the capital letters (for example, test is identical to TeSt)
{
//they are identical
}
else
{
//they are not identical, at least one character is different
}
This is the wiki page: https://sampwiki.blast.hk/wiki/Strcmp
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)