Refund Script Help
#1

Код:
enum RefundStuffs
{
	Crack,
	Pot,
	level,
	BankCash
}
new Refund[MAX_PLAYERS][RefundStuffs];
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/refund", cmdtext, true, 10) == 0)
	{
	    Refund[playerid][Crack] = 10;
	    Refund[playerid][Pot] = 10;
	    Refund[playerid][level] = 3;
	    Refund[playerid][BankCash] = 1000000;
	    GivePlayerMoney(playerid,500000);
		return 1;
	}
	return 0;
}
I tried compiling this for my script and it gave me 3 errors, I'm thinking that I need to set it to a CMD Setstat
But I don't know how, Anyone know what I should do?
Reply


Messages In This Thread
Refund Script Help - by YoungWildFree - 21.02.2012, 13:34
Re: Refund Script Help - by Toreno - 21.02.2012, 13:39
Re: Refund Script Help - by YoungWildFree - 21.02.2012, 13:43
Re: Refund Script Help - by Toreno - 21.02.2012, 13:46
Re: Refund Script Help - by YoungWildFree - 21.02.2012, 13:48
Re: Refund Script Help - by YoungWildFree - 21.02.2012, 14:00
Re: Refund Script Help - by Toreno - 21.02.2012, 14:05
Re: Refund Script Help - by YoungWildFree - 21.02.2012, 14:07
Re: Refund Script Help - by Toreno - 21.02.2012, 14:09
Re: Refund Script Help - by YoungWildFree - 21.02.2012, 15:01

Forum Jump:


Users browsing this thread: 2 Guest(s)