SA-MP Forums Archive
Cash Dropping Script - 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: Cash Dropping Script (/showthread.php?tid=389514)



Cash Dropping Script - adsy - 02.11.2012

I have been working on a cash dropping script as frankly, I don't like the filterscripts there are for it.

Number 1 problem
Player Dies, Player Drops Cash, Cash variable is set
Player Dies again, Player Drops Cash AGAIN and cash variable is set again.

problem is that the variable is not identified to the player, just the variable.

Number 2 problem
Player Dies, Player Drops Cash, Cash variable is set WITH playerid
Player Dies again, Player Drops Cash AGAIN and cash variable is set again. (rewrites the variable)

Number 3 problem
This one is the one I felt should work and doesnt

Код:
cashdropcount[playerid]++;
cashdrop[playerid][cashdropcount[playerid]] = createpickup(.....);
Any ideas?