Very hard Questions (pros or intermidiates only please unless you can answer it) - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Very hard Questions (pros or intermidiates only please unless you can answer it) (
/showthread.php?tid=70711)
Very hard Questions (pros or intermidiates only please unless you can answer it) -
zanakinz - 27.03.2009
Well anyways im trying to create my own type on "money" as you might call it how can we create that and also how can we make it go into this kind of format for like buying commands /buy 1 (my type of money instead of SafeGivePlayerMoney(playerid, -3); )
i give some codes
Код:
SafeGivePlayerMoney(playerid,-25000);
(and what i want it to look like)
SafeGivePlayerXpro(playerid,-2);
and this is what i truely want it to do
first this:
Код:
SafeGivePlayerXpro(playerid,-2);
then i want it to do this
Код:
SafeGivePlayerMoney(playerid,100000);
so basically all i want to do is make another kind of money
edit:
Код:
SafeGivePlayerXpro(playerid,AMOUNT);
If that helps :P
Another Edit :P
Where do i find that function?? i want to do something with it please tell
Re: Very hard Questions (pros or intermidiates only please unless you can answer it) -
Drift_04 - 27.03.2009
im not quite getting what your saying here but i might have the answer, at the top of your script where all the #defines are Add this
Код:
#define SafeGivePlayerXpro(playerid,-25000); SafeGivePlayerMoney(playerid,-25000);
And unlesss you have a more technical way of doing it you will hae to do that for everyone you do like #define SaveGivePlayerXpro(playerid, -455); SafeGivePlayerMoney(playerid, -455);
for every time you switc hteh value, unless you know how to change it around so u only have to do it once, i hope i helped.