Why wont this work?
#1

pawn Код:
if(!strcmp(teamname, "England" || "Iraq" || "Russia" || "Mexico", true))
And error:
pawn Код:
error 001: expected token: "-string end-", but found "-identifier-"
I am using sscanf, and I want to check if the parameter the player entered matches one of these team names.
Reply
#2

You forgot to add ; to the end of the line, that should fix it.
Reply
#3

No..
pawn Код:
//
        if(!strcmp(teamname, "England" || "Iraq" || "Russia" || "Mexico", true))
        {
        }
If I add an ; to the line, then following code in the brackets wont execute I think.
Reply
#4

BUMP! Also this is giving the same error:
pawn Код:
//
        if(teamname == "England" || teamname == "england")
        {
       
        }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)