03.07.2015, 13:16
Well, WHy is this not working?
Any idea?
I added this for cmd:ticket and cmd: pay
I want it shows you cop and to crminal
for example:
If a cop issued a ticket to criminal
and now this is on cmd
ay
So, I m not adding this cost in my cmds. I just made it like this cuz im using cost in cmd: pay and also on cmd:ticket
So, the problem is whenever i compile it it shows me ERROR that pwn has stopped working.
And it's because of this line:
new cost = random(3000);
any idea how to show ticket amount in pay and ticket cmds. ?
PHP код:
new cost = random(3000);
I added this for cmd:ticket and cmd: pay
I want it shows you cop and to crminal
for example:
If a cop issued a ticket to criminal
PHP код:
format(string, sizeof(string), "You have issued a ticket to %s (%d). Cost: $%d. Please wait until you get paid", NAME, ID, cost);
SendClientMessage(playerid, AZUL, string);
format(string, sizeof(string), "{6A5ACD}You have been issued a ticket by %s (%d). Cost: $%d", cop, playerid, cost);
SendClientMessage(ID, AZUL, string);

PHP код:
format(string, sizeof(string), "You have paid your ticket. Cost: %d", cost);
SendClientMessage(playerid, GREEN, string);
PHP код:
new cost = random(3000);
new ticketed[MAX_PLAYERS];
CMD:ticket(playerid, params[])
{
And it's because of this line:
new cost = random(3000);
any idea how to show ticket amount in pay and ticket cmds. ?