Jump to content

QuakeC Problem

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
Noxious

Noxious

    Newbie

  • Members
  • Pip
  • 5 posts
(Sorry if this is the wrong forum but I was unsure of where this should go.)


I have a small problem. I'd like to change the code below so I don't have to put all three checks. Essentially, I need it to see that the command starts with "team_CTF_" so it will affect all three of those with just that line (if that makes any sense.)

if ((Q_stricmp(name, "team_CTF_blueflag") == 0) || (Q_stricmp(name, "team_CTF_redflag") == 0) || (Q_stricmp(name, "team_CTF_neutralflag") == 0))

Something called "Q_stricmpn" is needed but I've never used that before so I'm unsure about it.

#2
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,720 posts
if(!Q_stricmpn(name,"team_CTF_",9))

sudo rm -rf /