Two Small Problems
#5

So now i have this.

Код:
if (!dini_Exists(udb_encode(PlayerName)))
      {
	  new FilePath[28];
	format(FilePath, 28, "\\Truckers\\%s.txt", PlayerName);
	dini_Create(FilePath);
        dini_IntSet(udb_encode(PlayerName), "Password", udb_hash(tmp));
        dini_IntSet(udb_encode(PlayerName), "AdminLevel", 0);
        dini_IntSet(udb_encode(PlayerName), "Money", 2500);
        dini_IntSet(udb_encode(PlayerName), "TruckType", 413);
        dini_IntSet(udb_encode(PlayerName), "JobsDone", 0);
        dini_IntSet(udb_encode(PlayerName), "JobLevel", 1);
        dini_IntSet(udb_encode(PlayerName), "Mission", 1);
        
        TruckerSkin[playerid] = GetPlayerSkin(playerid);
        dini_IntSet(udb_encode(PlayerName), "Skin", TruckerSkin[playerid]);
        
        format(string, sizeof(string), "Account %s Created! You Can Now Login With /login %s", PlayerName, tmp);
        SendClientMessage(playerid, COLOUR_LIGHTBLUE, string);
      }
Will i have to change the (PlayerName) to the filepath?

dini_IntSet(udb_encode(PlayerName), "AdminLevel", 0);
dini_IntSet(udb_encode(FilePath "AdminLevel", 0);
Reply


Messages In This Thread
Two Small Problems - by Alec24 - 05.04.2009, 09:59
Re: Two Small Problems - by Torekk - 05.04.2009, 10:14
Re: Two Small Problems - by Alec24 - 05.04.2009, 10:19
Re: Two Small Problems - by LarzI - 05.04.2009, 12:01
Re: Two Small Problems - by Alec24 - 05.04.2009, 14:35
Re: Two Small Problems - by LarzI - 08.04.2009, 00:53
Re: Two Small Problems - by Alec24 - 09.04.2009, 11:42
Re: Two Small Problems - by Nero_3D - 09.04.2009, 12:05
Re: Two Small Problems - by Alec24 - 09.04.2009, 12:30
Re: Two Small Problems - by Nero_3D - 09.04.2009, 13:26

Forum Jump:


Users browsing this thread: 4 Guest(s)