All pastes #251725 Raw Edit

f

public text v1 · immutable
#251725 ·published 2006-11-18 15:22 UTC
rendered paste body
if(strcmp(command, "/jobs", true) == 0)
	{
		SendErrMsg(playerid, "Usage: /job [add/list/apply/del]");

		new subcommand[256];
		subcommand = strtok(cmdtext, index);

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

            if(!strlen(subcommand)) {
			SendErrMsg(playerid, "Usage: /job 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;
		}