Posts: 943
Threads: 218
Joined: Jul 2012
Reputation:
0
26.07.2012, 12:39
(
Последний раз редактировалось Akcent_Voltaj; 26.07.2012 в 12:41.
Причина: Fast Help Please!
)
why do money each time i come in my server the set to -50...how could i do it so if i leave with 500$ then when i go back i get 500$ back ...why?whats cauzing?dont know..
Posts: 943
Threads: 218
Joined: Jul 2012
Reputation:
0
Please help anybody i have a server of 30 people and locked please help say answer..
Posts: 1,018
Threads: 129
Joined: Apr 2011
Reputation:
0
OMG,I am actually a bit astonished you could not realize you need a DataBase system.
Posts: 943
Threads: 218
Joined: Jul 2012
Reputation:
0
Saving sistem?
OFF:Sunt roman si eo
ENG:im romanian too
Posts: 490
Threads: 78
Joined: Jul 2011
Reputation:
0
Yes you need a saving system to save your money. I recommend MySQL.
E:// Too late.
Posts: 1,018
Threads: 129
Joined: Apr 2011
Reputation:
0
YES,you do but you need to load the data,and you can't do that without a DataBase from files in wich you STORE the player's info...
Posts: 14
Threads: 1
Joined: Jul 2012
Reputation:
0
Steps for creation:
1.) Make a new variable using the "new" function.
2.) Put GetPlayerCash function under OnPlayerDisconnect callback.
3.) And, GivePlayerCash function under OnPlayerSpawn callback.
Example :
new pMoney;
OnPlayerSpawn - GivePlayerCash(playerid, {variable} );
OnPlayerDisconnect - - GetPlayerCash(playerid);
---------------------------------------------
Get a database system to store the variable of the cash onto player accounts.
Posts: 943
Threads: 218
Joined: Jul 2012
Reputation:
0
i just put mysql and thats all??