05.04.2009, 14:35
So now i have this.
Will i have to change the (PlayerName) to the filepath?
dini_IntSet(udb_encode(PlayerName), "AdminLevel", 0);
dini_IntSet(udb_encode(FilePath "AdminLevel", 0);
Код:
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); }
dini_IntSet(udb_encode(PlayerName), "AdminLevel", 0);
dini_IntSet(udb_encode(FilePath "AdminLevel", 0);