Posts: 508
Threads: 34
Joined: Feb 2011
Reputation:
0
show us the code so that we can fix it
Posts: 12
Threads: 3
Joined: Mar 2011
Reputation:
0
I didn't code it, I used one realsed from someone it's a base and I have know clue where it may be.
Posts: 606
Threads: 3
Joined: Apr 2008
Reputation:
0
How do you think we can help you if you don't give some informations about the code.
Posts: 12
Threads: 3
Joined: Mar 2011
Reputation:
0
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.
Posts: 508
Threads: 34
Joined: Feb 2011
Reputation:
0
OnPlayerConnect or OnPlayerDisconnect. See if there is any GetPlayerMoney
Posts: 12
Threads: 3
Joined: Mar 2011
Reputation:
0
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));
Posts: 606
Threads: 3
Joined: Apr 2008
Reputation:
0
Nothing will help like this.
You should learn the basics of scripting instead of copying and using finished gamemodes.