How can i put money in here?
#1

How can i put money in this Dini file?
Quote:

dini_IntSet(file,"Cash", GetPlayerMoney(playerid));

Reply
#2

what wrong with that?
Reply
#3

Use enum?
Reply
#4

Quote:
Originally Posted by Antonio (eternalrp.webatu.com)
Use enum?
^^ :P Lol enum is for string player variables ingame. Din is to save them in the account file.

By the way, Ihsan, your code is correct. Do you get errors or wranings with that? If yes, please post them here.
Reply
#5

Quote:
Originally Posted by DJDhan
Quote:
Originally Posted by Antonio (eternalrp.webatu.com)
Use enum?
^^ :P Lol enum is for string player variables ingame. Din is to save them in the account file.

By the way, Ihsan, your code is correct. Do you get errors or wranings with that? If yes, please post them here.
No, i want to add money to id.
Like GivePlayerMoney(playerid, 5000);
I only get Money =0 in the .ini but i want
to make it Money = 5000, in the start.
Reply
#6

OnRegistration and log in:
Код:
dini_IntSet(file,Cash,"5000");
GivePlayerMoney(playerid,5000);
Reply
#7

Only use that on registration. On logins use GivePlayerMoney(dini_Int(file, "Cash"));
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)