A small problem.
#7

Код:
stock GivePlayerCash(playerid, money)
{
	SetPVarInt(playerid, "Cash", GetPVarInt(playerid, "Cash")+money);
	GivePlayerMoney(playerid, money);
	return 1;
}
Here is my function..
Should I put it in the filescript or something? I have to change the..?
Код:
public robtimer(playerid)
{
	new string[128];//We are defining a new string for the formatted message that we are displaying later on.
    new cash = random(200000);
	GivePlayerMoney(playerid, cash);
	/*
    With the fuction above 'new cash = random(200000);
	GivePlayerMoney(playerid, cash);' we give the player
    a random amount of money from $0 - $200,000
    */
    //Here below we use the string we defined above to format the message itself and display it to the player.
	format(string, sizeof(string), "You have successfully robbed $%d from the bank!", cash);
	SendClientMessage(playerid, COLOR_WHITE, string);
}
Reply


Messages In This Thread
A small problem. - by Gogorakis - 12.11.2013, 13:16
Re: A small problem. - by Loot - 12.11.2013, 13:25
Re: A small problem. - by Gogorakis - 12.11.2013, 13:33
Re: A small problem. - by Loot - 12.11.2013, 13:43
Re: A small problem. - by Gogorakis - 12.11.2013, 14:00
Re: A small problem. - by Loot - 12.11.2013, 14:06
Re: A small problem. - by Gogorakis - 12.11.2013, 14:09
Re: A small problem. - by Loot - 12.11.2013, 14:12
Re: A small problem. - by Gogorakis - 12.11.2013, 14:15
Re: A small problem. - by Loot - 12.11.2013, 14:21

Forum Jump:


Users browsing this thread: 2 Guest(s)