Detaljan opis problema: Pokrenem server Ja se registriram i odem off! Dodjem Se Registrirati s Drugim accom i meni daje neke Podatke sto je imo prosli acc! Daje: Adminlevel, GM level, i Skin!
Dio skripte:
Evo dialog:
case 2:
{
if (!response) return Kick(playerid);
if(response)
{
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Registracija", "{0000FF}{FFFFFF}Dobrodosao na "Server_Name"\n\n{FFFFFF}Molimo upisi zeljenu lozinku:\n{0000FF}__________________________________________","Registracija","Odustani");
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Password",udb_hash(inputtext));
INI_WriteInt(File,"Score",0);
INI_WriteInt(File,"Cash",0);
INI_WriteInt(File,"Admin",0);
INI_WriteInt(File,"GameMaster",0);
INI_WriteInt(File,"Skin",0);
INI_WriteInt(File,"Kills",0);
INI_WriteInt(File,"Deaths",0);
INI_WriteInt(File,"Podaci",0);
INI_WriteInt(File,"Spol",0);
INI_WriteInt(File,"Godine",0);
INI_WriteInt(File,"Drzava",0);
INI_WriteInt(File,"BorbeniStil",0);
INI_WriteInt(File,"Tutorial",0);
INI_Close(File);
ShowPlayerDialog(playerid,3,DIALOG_STYLE_LIST,"Koji ste spol?","Musko\nZensko","Uredu","Odustani");
}
}Ovo je za Spremanje podataka:
public SaveAccountInfo(playerid)
{
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Score",GetPlayerScore(playerid));
INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
INI_WriteInt(File,"Admin",PlayerInfo);
INI_WriteInt(File,"GameSage",PlayerInfo);
INI_WriteInt(File,"Skin",GetPlayerSkin(playerid));
INI_WriteInt(File,"Kills",PlayerInfo);
INI_WriteInt(File,"Deaths",PlayerInfo);
INI_WriteInt(File,"Podaci",PlayerInfo);
INI_WriteInt(File,"Spol",PlayerInfo);
INI_WriteInt(File,"Godine",PlayerInfo);
INI_WriteInt(File,"Drzava",PlayerInfo);
INI_WriteInt(File,"BorbeniStil",PlayerInfo);
INI_WriteInt(File,"Tutorial",PlayerInfo);
INI_Close(File);
return 1;
}Ovo je za loadanje podataka:
public LoadUser_data(playerid,name[],value[])
{
INI_Int("Password",PlayerInfo);
INI_Int("Score",PlayerInfo);
INI_Int("Cash",PlayerInfo);
INI_Int("Admin",PlayerInfo);
INI_Int("GameSage",PlayerInfo);
INI_Int("Skin",PlayerInfo);
INI_Int("Kills",PlayerInfo);
INI_Int("Deaths",PlayerInfo);
INI_Int("Podaci",PlayerInfo);
INI_Int("Spol",PlayerInfo);
INI_Int("Godine",PlayerInfo);
INI_Int("Drzava",PlayerInfo);
INI_Int("BorbeniStil",PlayerInfo);
INI_Int("Tutorial",PlayerInfo);
return 1;
}Neke slike/video za lakse dobivanje pomoci(neobavezno):
