Need an if !
#8

pawn Код:
forward IsPlayerName(playerid,name[],iscasesensitive);
public IsPlayerName(playerid,name[],iscasesensitive)
{
  new pName[MAX_PLAYER_NAME];
  GetPlayerName(playerid,pName,sizeof(pName));
  if(iscasesensitive) { return strcmp(pName,name,true)? 0 : 1; }
  if(!iscasesensitive) { return strcmp(pName,name,false)? 0 : 1; }
  return 0;
}
There you go... UNTESTED
Reply


Messages In This Thread
Need an if ! - by MarcoNecroX - 08.05.2009, 23:22
Re: Need an if ! - by yom - 08.05.2009, 23:38
Re: Need an if ! - by s0nic - 09.05.2009, 00:15
Re: Need an if ! - by Joe Staff - 09.05.2009, 04:13
Re: Need an if ! - by MarcoNecroX - 09.05.2009, 05:50
Re: Need an if ! - by Dark_Kostas - 09.05.2009, 06:48
Re: Need an if ! - by MarcoNecroX - 09.05.2009, 15:48
Re: Need an if ! - by OmeRinG - 09.05.2009, 17:45

Forum Jump:


Users browsing this thread: 4 Guest(s)