Sweeper job help.
#1

Hey guys, i try to make a sweeper job, but when you receive a money it will not save.

Code:
forward Sweeping(playerid);
public Sweeping(playerid)
{
	new string[128];
	new rand = 200 + random(210);
	GivePlayerMoney(playerid, rand);
	format(string, sizeof(string), "You have received $%d for your Street Sweeping Job!", rand);
	SendClientMessage(playerid, 0x58E11EC8, string);
	return 1;
}
Reply
#2

Are you using an Enum to save player data? if you are, it should save the money right?
Reply
#3

Opps, sorry it's fixed already, i'l just change the "GivePlayerMoney" to "GivePlayerCash" =) my fault.
Reply
#4

Don't claim others work as your own.
http://forum.sa-mp.com/showthread.ph...71#post2543371

To save data you will have to use a saving system like Y_INI.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)