Sweeper job help. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Sweeper job help. (
/showthread.php?tid=439914)
Sweeper job help. -
edgargreat - 27.05.2013
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;
}
Re: Sweeper job help. -
DobbysGamertag - 27.05.2013
Are you using an Enum to save player data? if you are, it should save the money right?
Re: Sweeper job help. -
edgargreat - 27.05.2013
Opps, sorry it's fixed already, i'l just change the "GivePlayerMoney" to "GivePlayerCash" =) my fault.
Re: Sweeper job help. -
Faisal_khan - 27.05.2013
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.