All pastes #251737 Raw Edit

?

public text v1 · immutable
#251737 ·published 2006-11-18 15:40 UTC
rendered paste body
	if(strcmp(command, "/jobs", true) == 0)
	{
  		new subcommand[256];
		subcommand = strtok(cmdtext, index);

		if(!strlen(subcommand)) {

		if(strcmp(subcommand, "add", true) == 0)

			SendErrMsg(playerid, "Usage: /jobs add <Job Title> <Pay> <Description>");
			return 1;
		}
		{
			new Maker, Title, Pay, Descrip;
			Maker = playerid;
			Title = strval(strtok(cmdtext, index));
			Pay = strval(strtok(cmdtext, index));
			Descrip = strval(strtok(cmdtext, index));
			return 1;
		}

 		else if(strcmp(subcommand, "list", true) == 0)
		{
			for (new i; strlen(Jobs[i][jTitle][0]) > 0; i++)
			{
			SendClientMessage(playerid, 0xFFFFFFFF, Jobs[i][jTitle]);
			}
		return 1;
		}

		return 1;
	}