Aller au contenu

Photo

Checking for greater than 1


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
indio

indio
  • Members
  • 204 messages
int iItemCount = CountItemsByTag(oPlayer, "pro_cft_camp_flint");

        if (iItemCount  == 1)

If I were to check for 1 or more than 1 of this item, how would I notate that. I tried => with no success, and can't find a reference to what it might be it anywhere.

Thanks.

#2
AmstradHero

AmstradHero
  • Members
  • 1 239 messages
if (iItemCount >= 1) should do the trick.




#3
indio

indio
  • Members
  • 204 messages
Thanks. Got my order wrong :)