/accept *something*
#1

i tried but failed.Code:
Код:
dcmd_accept(playerid, params[])
{
	new toaccept;
	new tstring[64];
	
	new price = ticket[playerid];
	if(AccountInfo[playerid][Faction] == 1)
 	{
		if(sscanf(params,"s",toaccept)) return SCM(playerid, WHITE, "Usage: /accept [name]");SCM(playerid, WHITE, "Names: Ticket, ");
		{
		  if(strcmp(params,"ticket",true) == 0)
		  {
		    GivePlayerMoney(playerid,-price);
		    format(tstring,64,"*LSPD* %s has paid a ticket with Price:%d",PlayerName(playerid),price);
		    SendFactionMessage(BLUE,tstring,1);
		    ticket[playerid] = 0;
		  }
		}
	}
	return 1;
}
I wanted like /accept ticket or service or invite or money or w/e.
With a text in one command.

thanks.And this doesnt work.I get unknown error i think. IG
Reply


Messages In This Thread
/accept *something* - by Naruto4 - 03.01.2010, 20:05
Re: /accept *something* - by Correlli - 03.01.2010, 20:12
Re: /accept *something* - by Naruto4 - 03.01.2010, 20:15
Re: /accept *something* - by Naruto4 - 03.01.2010, 20:36
Re: /accept *something* - by RyDeR` - 03.01.2010, 20:51
Re: /accept *something* - by MadeMan - 03.01.2010, 21:23

Forum Jump:


Users browsing this thread: 2 Guest(s)