Players money won't save.[CLICK HERE]
#1

Hey I got an issue, whatever amount a money a player has when he logs out and logs back in it always goes back to $7500 which is what they get when they first start off also the score, admin level and everything else saves and any money put in the bank stays the same.

What can be the issue?

Thanks in advance from the noob scripter.
Reply
#2

show us the code so that we can fix it
Reply
#3

I didn't code it, I used one realsed from someone it's a base and I have know clue where it may be.
Reply
#4

How do you think we can help you if you don't give some informations about the code.
Reply
#5

ok then show it
Reply
#6

I dunno whee it is in GM to copy and show you.
Any idea what the code would look like?

Sorry if I sound like a retard right now because I am....I'm like a new born baby...lol I fail at life.
Reply
#7

OnPlayerConnect or OnPlayerDisconnect. See if there is any GetPlayerMoney
Reply
#8

public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid)) return 1;

new string[128];
new pname[24];

=============================


public OnPlayerDisconnect(playerid, reason)
{
if(IsPlayerNPC(playerid))
{
IsSpawned[playerid] =0;
return 1;
}
if(afktag[playerid] == 1)
{
new pname[16];
GetPlayerName(playerid,pname,16);
strdel(pname, strlen(pname)-5, strlen(pname));
afktag[playerid] =0;
SetPlayerName(playerid,pname);
}
new string[128];
new pname[24];
GetPlayerName(playerid,pname,sizeof(pname));
Reply
#9

Does that help at all?
Reply
#10

Nothing will help like this.
You should learn the basics of scripting instead of copying and using finished gamemodes.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)