Returning wrong if statement.
#8

pawn Код:
CMD:teleport(playerid, params[])
{
  new teleportlocation[50];
  if(sscanf(params, "s", teleportlocation)) return SendClientMessage(playerid, COLOR, "Usage: /teleport [location]");
  else if(strcmp(teleportlocation, "help") == 0 || strcmp(teleportlocation, "00") == 0)
  {
    // error message
  }
  else if(strcmp(teleportlocation, "names") == 0)
  {
    // and so on
  }  
  return 1;
}
Reply


Messages In This Thread
Returning wrong if statement. - by Christopher. - 27.02.2010, 14:51
Re: Returning wrong if statement. - by Joe Staff - 27.02.2010, 14:52
Re: Returning wrong if statement. - by Christopher. - 27.02.2010, 14:56
Re: Returning wrong if statement. - by Christopher. - 27.02.2010, 15:23
Re: Returning wrong if statement. - by yoan103 - 27.02.2010, 16:05
Re: Returning wrong if statement. - by Christopher. - 27.02.2010, 16:56
Re: Returning wrong if statement. - by Double-O-Seven - 27.02.2010, 16:57
Re: Returning wrong if statement. - by Miguel - 27.02.2010, 18:25

Forum Jump:


Users browsing this thread: 7 Guest(s)