Saving Player Team
#1

Okay, i'am trying to save tyhe player's team, but it's not working at the player dudb file, it doesn't even create the thing called "Team", but the other things like money and skin it works :/

See how i am doing:

Код:
//OnPlayerDisconnect

public OnPlayerDisconnect(playerid)
{
 if (PLAYERLIST_authed[playerid])
 	{
  	dUserSetINT(PlayerName(playerid)).("money",GetPlayerMoney(playerid));
  	dUserSetINT(PlayerName(playerid)).("Skin",GetPlayerSkin(playerid));
    dUserSetINT(PlayerName(playerid)).("Team",gTeam[playerid]);
 	}
 	
 PLAYERLIST_authed[playerid] = false;
 return true;
}

//OnPlayerSpawn

public OnPlayerSpawn(playerid)
{
  if (PLAYERLIST_authed[playerid])
  { 
   SetPlayerSkin(playerid,dUserINT(PlayerName(playerid)).("Skin"));
   gTeam[playerid] = dUserINT(PlayerName(playerid)).("Team");
  }
	return 1;
}
Reply
#2

Sorry: Double post.

Help?
Reply
#3

use dini its much easier, and dudb as i known is a piece of sh*t
Reply
#4

But all my gamemode uses dudb and it would be reaaaaally hard to re-make it, I prefer keep dudb, HELP!
Reply
#5

Help!
Reply
#6

Please stop double-posting.
Reply
#7

But I just want help...
Reply
#8

People will get pissed if you keep bumping your topics. It's not allowed BTW.
Reply
#9

You guys, reply this topcic to say me the rules?! I just need help! And people like you want to teach me the rules!
Reply
#10

Because we don't want the forum spam'd up by people like you
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)