Detaljan opis problema: Ponovo sam pisao cijeli kod za registraciju, i treba da pri unosu passworda da kreira igraÄev fajl, ali niÅ¡ta. Ne razumijem u Äemu je problem
Dio skripte:
Vrh skripte:
#define PLAYERS "/Igraci/%s.ini"
AccountPath
stock AccountPath(playerid)
{
new string, playername;
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), PLAYERS, playername);
return string;
}
Password Dialog
case DIALOG_PASSWORD:
{
if(!response)
if(response)
{
new INI:File = INI_Open(AccountPath(playerid));
INI_SetTag(File,"data");
INI_WriteString(File, "Lozinka", inputtext);
INI_WriteString(File, "PrIme", GetName(playerid));
INI_WriteString(File, "DrIme", "None");
INI_WriteString(File, "TrIme", "None");
INI_WriteInt(File, "PrAcc", 0);
INI_WriteInt(File, "DrAcc", 0);
INI_WriteInt(File, "TrAcc", 0);
INI_WriteInt(File, "PrSkin", 299);
INI_WriteInt(File, "DrSkin", 299);
INI_WriteInt(File, "TrSkin", 299);
INI_WriteInt(File, "Novac", 250);
INI_WriteInt(File, "PrLevel", 1);
INI_WriteInt(File, "DrLevel", 1);
INI_WriteInt(File, "TrLevel", 1);
INI_WriteInt(File, "GameAdmin", 0);
INI_WriteInt(File, "GameSupporter", 0);
INI_WriteInt(File, "Godine", 0);
INI_WriteInt(File, "Spol", 0);
INI_WriteInt(File, "Grad", 0);
INI_WriteInt(File, "Ubojstva", 0);
INI_WriteInt(File, "Umorstva", 0);
INI_Close(File);
}
TextDrawShowForPlayer(playerid, RegistracijaC);
TextDrawShowForPlayer(playerid, RegistracijaC);
TextDrawShowForPlayer(playerid, RegistracijaC);
TextDrawShowForPlayer(playerid, RegistracijaC);
TextDrawShowForPlayer(playerid, RegistracijaC);
TextDrawShowForPlayer(playerid, RegistracijaC);
TextDrawShowForPlayer(playerid, RegistracijaC);
TextDrawShowForPlayer(playerid, RegistracijaC);
TextDrawShowForPlayer(playerid, RegistracijaC);
TextDrawShowForPlayer(playerid, RegistracijaC);
TextDrawShowForPlayer(playerid, RegistracijaC);
TextDrawShowForPlayer(playerid, RegistracijaC);
TextDrawShowForPlayer(playerid, RegistracijaC);
TextDrawShowForPlayer(playerid, RegistracijaC);
TextDrawShowForPlayer(playerid, RegistracijaC);
TextDrawShowForPlayer(playerid, RegistracijaC);
TextDrawShowForPlayer(playerid, RegistracijaC);
TextDrawShowForPlayer(playerid, RegistracijaC);
TextDrawShowForPlayer(playerid, RegistracijaC);
TextDrawShowForPlayer(playerid, RegistracijaC);
TextDrawShowForPlayer(playerid, RegistracijaC);
TextDrawShowForPlayer(playerid, RegistracijaC);
TextDrawShowForPlayer(playerid, RegistracijaC);
TextDrawShowForPlayer(playerid, RegistracijaC);
TextDrawShowForPlayer(playerid, RegistracijaC);
TextDrawShowForPlayer(playerid, RegistracijaC);
TextDrawShowForPlayer(playerid, RegistracijaC);
}