Very hard Questions (pros or intermidiates only please unless you can answer it)
#1

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
Код:
GivePlayerMoney
Where do i find that function?? i want to do something with it please tell
Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)