Skripta koju koristim: Moja od 0
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[128], playername[MAX_PLAYER_NAME];
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[0]);
TextDrawShowForPlayer(playerid, RegistracijaC[1]);
TextDrawShowForPlayer(playerid, RegistracijaC[2]);
TextDrawShowForPlayer(playerid, RegistracijaC[3]);
TextDrawShowForPlayer(playerid, RegistracijaC[4]);
TextDrawShowForPlayer(playerid, RegistracijaC[5]);
TextDrawShowForPlayer(playerid, RegistracijaC[6]);
TextDrawShowForPlayer(playerid, RegistracijaC[7]);
TextDrawShowForPlayer(playerid, RegistracijaC[8]);
TextDrawShowForPlayer(playerid, RegistracijaC[9]);
TextDrawShowForPlayer(playerid, RegistracijaC[10]);
TextDrawShowForPlayer(playerid, RegistracijaC[11]);
TextDrawShowForPlayer(playerid, RegistracijaC[12]);
TextDrawShowForPlayer(playerid, RegistracijaC[13]);
TextDrawShowForPlayer(playerid, RegistracijaC[14]);
TextDrawShowForPlayer(playerid, RegistracijaC[15]);
TextDrawShowForPlayer(playerid, RegistracijaC[16]);
TextDrawShowForPlayer(playerid, RegistracijaC[17]);
TextDrawShowForPlayer(playerid, RegistracijaC[18]);
TextDrawShowForPlayer(playerid, RegistracijaC[19]);
TextDrawShowForPlayer(playerid, RegistracijaC[20]);
TextDrawShowForPlayer(playerid, RegistracijaC[21]);
TextDrawShowForPlayer(playerid, RegistracijaC[22]);
TextDrawShowForPlayer(playerid, RegistracijaC[23]);
TextDrawShowForPlayer(playerid, RegistracijaC[24]);
TextDrawShowForPlayer(playerid, RegistracijaC[25]);
TextDrawShowForPlayer(playerid, RegistracijaC[26]);
}
To ti je zbog ovog dijela:
if(!response)
if(response)
Taj dio ti uopće nema smisla. Slobodno izbrišeš if(!response).