[SOLVED] Strcmp problem
#5

Try this (just a suggestion, not tested yet):

pawn Код:
if(strcmp(Pass, params, true))
{
  // Put your code in here which does the things you want it to do when the player types in the correct password
  return 1;
}
if(strcmp(Pass, params, false))
{
  SendClientMessage(playerid, GRAY, "[Server]: Wrong password!");
  return 1;
}



And if that doesn't work, then try this:

pawn Код:
if(!strcmp(Pass, params, true))
{
  // Put your code in here which does the things you want it to do when the player types in the correct password
  return 1;
}
if(!strcmp(Pass, params, false))
{
  SendClientMessage(playerid, GRAY, "[Server]: Wrong password!");
  return 1;
}
Reply


Messages In This Thread
[SOLVED] Strcmp problem - by Blantas - 26.07.2009, 08:18
Re: Strcmp problem - by abhinavdabral - 26.07.2009, 08:31
Re: Strcmp problem - by Blantas - 26.07.2009, 08:38
Re: Strcmp problem - by Blantas - 26.07.2009, 11:51
Re: Strcmp problem - by refshal - 26.07.2009, 12:05
Re: Strcmp problem - by Blantas - 26.07.2009, 13:17
Re: Strcmp problem - by abhinavdabral - 26.07.2009, 13:48
Re: Strcmp problem - by Blantas - 26.07.2009, 13:57
Re: [SOLVED] Strcmp problem - by abhinavdabral - 26.07.2009, 14:44

Forum Jump:


Users browsing this thread: 1 Guest(s)