Need help - strcmp at OnPlayerConnect
#1

Okay, Iґve got several strcmps at OnPlayerConnect. Just like this:
Код:
	if(strcmp(PlayerName, "Name", true))
	{
    gangmember[playerid] = 1;
	gangleader[playerid] = 1;
	}
But somehow everyone joining gets the value assigned! Why?
Reply
#2

Can you please post all your OnPlayerConnect code.
Reply
#3

Doesn't strcmp mean the comparisons do not match

Try changing:
pawn Код:
if(strcmp(PlayerName, "Name", true)) // Name is not found/matched
to:
pawn Код:
if(!strcmp(PlayerName, "Name", true)) // name is found/matched
Reply
#4

*facepalm

Of course.. thank you.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)