03.01.2010, 20:05
i tried but failed.Code:
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
Код:
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; }
With a text in one command.
thanks.And this doesnt work.I get unknown error i think. IG