[Pomoc] Lozinka

Započeo [CH] Raza
2. Jul 2013. Zaključano
1,447
pregleda
19
postova
Raza
5
Underboss
2. Jul 2013.
Skripta koju koristim: CHDM by kizla
Detaljan opis problema: Pa neznam stvarno sta je ovo, DM/FR je server, i sad kad se netko prikljuci serveri netrazi od njega da se registrira, nego pise da su pronasli taj racun i da upise lozinku, i sad ja koju god lozinku da upisem udje mi na server. Onda kada odem u scriptfiles ---> Igraci i udjem u nekoga i stavim "Lozinka = 1234" onda je to taj pw, al kad neko drugi oce da udje na srv pise mu znaci da su mu pronasli account a lik se nikad prije nije connecto kod nas, i moze bilo tko uzet moj account i ući, a lozinku moze upisati koju god želi i connect ce se. Nez u cemu sam pogrijesio, ovo mi se prije nije pojavljivalo...
Dio skripte://
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
xyzcod2
5
Underboss
2. Jul 2013.
daj onplayerconnect
Raza
5
Underboss
2. Jul 2013.
public OnPlayerConnect(playerid)
{
    //PlayAudioStreamForPlayer(playerid, "http://www.stolac.com/");
    SetPlayerCameraPos(playerid, 1107.6791,-1796.6454,16.5938);
SetPlayerCameraLookAt(playerid, spawnX, spawnY, spawnZ);
SendDeathMessage(INVALID_PLAYER_ID,playerid, 200);
    GangZoneShowForPlayer(playerid, FAFGZ, 0xF70A0A80);
    GangZoneShowForPlayer(playerid, PRGZ, 0xCFB91080);
    GangZoneShowForPlayer(playerid, SRGZ, 0x176AE880);
    GangZoneShowForPlayer(playerid, DBGZ, 0x05E61780);
ping = 0;
pokusaji = 0;
GPSon = 0;
GPSba = 0;
heal = 0;
Cit = 0;
GPSdo = 0;
GPSsp = 0;
Radio = 0;
UBanci = 0;
CB = 0;
// plivanje1 = 0;
// plivanje2 = 0;
//plivanje3 = 0;
new stringe;
format( files,sizeof(files), BAN_FILE, PlayerName(playerid) );
if( fexist(files) )
{
  format( stringe, sizeof(stringe), ":: %s ::", PlayerName(playerid) );
  SendClientMessage(playerid, -1, stringe);
  SendClientMessage(playerid, -1, "Vi ste banani sa ovog servera." );
  SendClientMessage(playerid, -1, "http://samp.com/" );
  Kick(playerid);
}
    new naslov2, text, strText;
    format(strText, 35, USER_FILE, PlayerName(playerid));
    if(!INI_Exists(strText))
    {
    format(naslov2, sizeof(naslov2), "Registracija");
    format(text, sizeof(text), ""COL_LIGHTBLUE"________________________________________________\n\n"COL_WHITE"Dobrodosao na Stolac FR server!\n\n\n"#COL_LIGHTBLUE"%s\n"#COL_WHITE"Tvoj korisnicki racun nije pronaden\n\n\nMolimo upisi svoju lozinku da se registriras:\n\n"COL_LIGHTBLUE"________________________________________________", PlayerName(playerid));
    ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, naslov2, text, "Register", "Odustani");
    }
    else
    {
        format(naslov2, sizeof(naslov2), ""#COL_WHITE"Logiranje");
        format(text, sizeof(text),""COL_LIGHTBLUE"________________________________________________\n\n"COL_WHITE"Dobrodosao na Stolac FR server!\n\n\n"#COL_LIGHTBLUE"%s\n"#COL_WHITE"Tvoj korisnicki racun je pronaden\n\n\nMolimo upisi svoju lozinku da udjes na server:\n\n"COL_LIGHTBLUE"________________________________________________", PlayerName(playerid));
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, naslov2, text, "Login", "Odustani");
    }
SetPVarInt(playerid, "Prijavljen", 1);
OcistiChat(playerid);
return 1;
}
xyzcod2
5
Underboss
3. Jul 2013.
AngeloPr0 wrote on July 2, 2013, 8:34 pm:
public OnPlayerConnect(playerid)
{
    //PlayAudioStreamForPlayer(playerid, "http://www.stolac.com/");
    SetPlayerCameraPos(playerid, 1107.6791,-1796.6454,16.5938);
SetPlayerCameraLookAt(playerid, spawnX, spawnY, spawnZ);
SendDeathMessage(INVALID_PLAYER_ID,playerid, 200);
    GangZoneShowForPlayer(playerid, FAFGZ, 0xF70A0A80);
    GangZoneShowForPlayer(playerid, PRGZ, 0xCFB91080);
    GangZoneShowForPlayer(playerid, SRGZ, 0x176AE880);
    GangZoneShowForPlayer(playerid, DBGZ, 0x05E61780);
ping = 0;
pokusaji = 0;
GPSon = 0;
GPSba = 0;
heal = 0;
Cit = 0;
GPSdo = 0;
GPSsp = 0;
Radio = 0;
UBanci = 0;
CB = 0;
// plivanje1 = 0;
// plivanje2 = 0;
//plivanje3 = 0;
new stringe;
format( files,sizeof(files), BAN_FILE, PlayerName(playerid) );
if( fexist(files) )
{
  format( stringe, sizeof(stringe), ":: %s ::", PlayerName(playerid) );
  SendClientMessage(playerid, -1, stringe);
  SendClientMessage(playerid, -1, "Vi ste banani sa ovog servera." );
  SendClientMessage(playerid, -1, "http://samp.com/" );
  Kick(playerid);
}
    new naslov2, text, strText;
    format(strText, 35, USER_FILE, PlayerName(playerid));
    if(!INI_Exists(strText))
    {
    format(naslov2, sizeof(naslov2), "Registracija");
    format(text, sizeof(text), ""COL_LIGHTBLUE"________________________________________________\n\n"COL_WHITE"Dobrodosao na Stolac FR server!\n\n\n"#COL_LIGHTBLUE"%s\n"#COL_WHITE"Tvoj korisnicki racun nije pronaden\n\n\nMolimo upisi svoju lozinku da se registriras:\n\n"COL_LIGHTBLUE"________________________________________________", PlayerName(playerid));
    ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, naslov2, text, "Register", "Odustani");
    }
    else
    {
        format(naslov2, sizeof(naslov2), ""#COL_WHITE"Logiranje");
        format(text, sizeof(text),""COL_LIGHTBLUE"________________________________________________\n\n"COL_WHITE"Dobrodosao na Stolac FR server!\n\n\n"#COL_LIGHTBLUE"%s\n"#COL_WHITE"Tvoj korisnicki racun je pronaden\n\n\nMolimo upisi svoju lozinku da udjes na server:\n\n"COL_LIGHTBLUE"________________________________________________", PlayerName(playerid));
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, naslov2, text, "Login", "Odustani");
    }
SetPVarInt(playerid, "Prijavljen", 1);
OcistiChat(playerid);
return 1;
}

pokusaj ovako:
    public OnPlayerConnect(playerid)
{
    //PlayAudioStreamForPlayer(playerid, "http://www.stolac.com/");
    SetPlayerCameraPos(playerid, 1107.6791,-1796.6454,16.5938);
SetPlayerCameraLookAt(playerid, spawnX, spawnY, spawnZ);
SendDeathMessage(INVALID_PLAYER_ID,playerid, 200);
    GangZoneShowForPlayer(playerid, FAFGZ, 0xF70A0A80);
    GangZoneShowForPlayer(playerid, PRGZ, 0xCFB91080);
    GangZoneShowForPlayer(playerid, SRGZ, 0x176AE880);
    GangZoneShowForPlayer(playerid, DBGZ, 0x05E61780);
ping = 0;
pokusaji = 0;
GPSon = 0;
GPSba = 0;
heal = 0;
Cit = 0;
GPSdo = 0;
GPSsp = 0;
Radio = 0;
UBanci = 0;
CB = 0;
// plivanje1 = 0;
// plivanje2 = 0;
//plivanje3 = 0;
new stringe;
format( files,sizeof(files), BAN_FILE, PlayerName(playerid) );
if( fexist(files) )
{
  format( stringe, sizeof(stringe), ":: %s ::", PlayerName(playerid) );
  SendClientMessage(playerid, -1, stringe);
  SendClientMessage(playerid, -1, "Vi ste banani sa ovog servera." );
  SendClientMessage(playerid, -1, "http://samp.com/" );
  Kick(playerid);
}
    new naslov2, text, strText;
    format(strText, 35, USER_FILE, PlayerName(playerid));
    if(INI_Exists(strText))
    {
        format(naslov2, sizeof(naslov2), ""#COL_WHITE"Logiranje");
        format(text, sizeof(text),""COL_LIGHTBLUE"________________________________________________\n\n"COL_WHITE"Dobrodosao na Stolac FR server!\n\n\n"#COL_LIGHTBLUE"%s\n"#COL_WHITE"Tvoj korisnicki racun je pronaden\n\n\nMolimo upisi svoju lozinku da udjes na server:\n\n"COL_LIGHTBLUE"________________________________________________", PlayerName(playerid));
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, naslov2, text, "Login", "Odustani");
    format(naslov2, sizeof(naslov2), "Registracija");
    format(text, sizeof(text), ""COL_LIGHTBLUE"________________________________________________\n\n"COL_WHITE"Dobrodosao na Stolac FR server!\n\n\n"#COL_LIGHTBLUE"%s\n"#COL_WHITE"Tvoj korisnicki racun nije pronaden\n\n\nMolimo upisi svoju lozinku da se registriras:\n\n"COL_LIGHTBLUE"________________________________________________", PlayerName(playerid));
    ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, naslov2, text, "Register", "Odustani");
    }
    else
    {
  format(naslov2, sizeof(naslov2), "Registracija");
    format(text, sizeof(text), ""COL_LIGHTBLUE"________________________________________________\n\n"COL_WHITE"Dobrodosao na Stolac FR server!\n\n\n"#COL_LIGHTBLUE"%s\n"#COL_WHITE"Tvoj korisnicki racun nije pronaden\n\n\nMolimo upisi svoju lozinku da se registriras:\n\n"COL_LIGHTBLUE"________________________________________________", PlayerName(playerid));
    ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, naslov2, text, "Register", "Odustani");
    }
SetPVarInt(playerid, "Prijavljen", 1);
OcistiChat(playerid);
return 1;
}
Raza
5
Underboss
3. Jul 2013.
A brate sad kad god udjem na server pise mi da nije nisam registriran i kad se ja registriram odem rlg udjem sa istim nickom opet pise niste registrirani.

znaci prije je bilo da uvjek pise da sam registriran na koji god udjem acc, a sada pise da nisam registiran na koji god acc udjem. Razumijes. Jel moze pomoc ?
Raza
5
Underboss
3. Jul 2013.
sry za dupli post.
Mozel neko da pomogne hitno mi je.
xyzcod2
5
Underboss
3. Jul 2013.
AngeloPr0 wrote on July 3, 2013, 11:21 am:
sry za dupli post.
Mozel neko da pomogne hitno mi je.

a pa ne iscitavas fajl
aj potrazi u skripti nes ovako:
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])


ili vise di imas kakav public i u njemu

INI_Int("Novac",GetPlayerMoney(playerid));
   

kao nes takvo
al da ima INI_Int,ili CTRL + F i kucas: INI_Int i stiskas F3 dok ti ne nade nes takvo kao sto sam naveo gore
Raza
5
Underboss
3. Jul 2013.
ma imam to sve na vrhu, pise isto kao kod tebe to :
forward LoadUser_data(playerid,name[],value[]);


i onda pri dnu ovo pise
public LoadUser_data(playerid, name[], value[])
{
    INI_String("Lozinka", PlayerInfo, 129);
    INI_Int("Admin", PlayerInfo);
    INI_Int("VIP", PlayerInfo);
    INI_Int("Novac", PlayerInfo);
    INI_Int("Level", PlayerInfo);
    INI_Int("Skin", PlayerInfo);
    INI_Float("SpawnHP", PlayerInfo);
    INI_Int("Banka", PlayerInfo);
    INI_Int("Ubojstva", PlayerInfo);
    INI_Int("Warn", PlayerInfo);
    INI_Int("Smrti", PlayerInfo);
    INI_Int("Minute", PlayerInfo);
    INI_Int("Lider", PlayerInfo);
    INI_Int("Clan", PlayerInfo);
    INI_Int("Rank", PlayerInfo);
    return 1;
}


vidis to mi sve ima u modu, stvarno neznam u cemu je problem..
xyzcod2
5
Underboss
3. Jul 2013.
pokusaj ovako:
        public OnPlayerConnect(playerid)
{
    //PlayAudioStreamForPlayer(playerid, "http://www.stolac.com/");
    SetPlayerCameraPos(playerid, 1107.6791,-1796.6454,16.5938);
SetPlayerCameraLookAt(playerid, spawnX, spawnY, spawnZ);
SendDeathMessage(INVALID_PLAYER_ID,playerid, 200);
    GangZoneShowForPlayer(playerid, FAFGZ, 0xF70A0A80);
    GangZoneShowForPlayer(playerid, PRGZ, 0xCFB91080);
    GangZoneShowForPlayer(playerid, SRGZ, 0x176AE880);
    GangZoneShowForPlayer(playerid, DBGZ, 0x05E61780);
ping = 0;
pokusaji = 0;
GPSon = 0;
GPSba = 0;
heal = 0;
Cit = 0;
GPSdo = 0;
GPSsp = 0;
Radio = 0;
UBanci = 0;
CB = 0;
// plivanje1 = 0;
// plivanje2 = 0;
//plivanje3 = 0;
new stringe;
format( files,sizeof(files), BAN_FILE, PlayerName(playerid) );
if( fexist(files) )
{
  format( stringe, sizeof(stringe), ":: %s ::", PlayerName(playerid) );
  SendClientMessage(playerid, -1, stringe);
  SendClientMessage(playerid, -1, "Vi ste banani sa ovog servera." );
  SendClientMessage(playerid, -1, "http://samp.com/" );
  Kick(playerid);
}
    new naslov2, text, strText;
    format(strText, 35, USER_FILE, PlayerName(playerid));
    if(INI_Exists(strText))
    {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        format(naslov2, sizeof(naslov2), ""#COL_WHITE"Logiranje");
        format(text, sizeof(text),""COL_LIGHTBLUE"________________________________________________\n\n"COL_WHITE"Dobrodosao na Stolac FR server!\n\n\n"#COL_LIGHTBLUE"%s\n"#COL_WHITE"Tvoj korisnicki racun je pronaden\n\n\nMolimo upisi svoju lozinku da udjes na server:\n\n"COL_LIGHTBLUE"________________________________________________", PlayerName(playerid));
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, naslov2, text, "Login", "Odustani");
    }
    else
    {
  format(naslov2, sizeof(naslov2), "Registracija");
    format(text, sizeof(text), ""COL_LIGHTBLUE"________________________________________________\n\n"COL_WHITE"Dobrodosao na Stolac FR server!\n\n\n"#COL_LIGHTBLUE"%s\n"#COL_WHITE"Tvoj korisnicki racun nije pronaden\n\n\nMolimo upisi svoju lozinku da se registriras:\n\n"COL_LIGHTBLUE"________________________________________________", PlayerName(playerid));
    ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, naslov2, text, "Register", "Odustani");
    }
SetPVarInt(playerid, "Prijavljen", 1);
OcistiChat(playerid);
return 1;
}
Raza
5
Underboss
3. Jul 2013.
Izbaci mi 2 erora
C:\Users\KORISNIK\Desktop\Stolac FR\gamemodes\CHDM.pwn(6422) : error 017: undefined symbol "UserPath
C:\Users\KORISNIK\DesktopStolac FR\gamemodes\CHDM.pwn(10576) : error 076: syntax error in the expression, or invalid function call"


Znaci eror je u ovome :
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
xyzcod2
5
Underboss
3. Jul 2013.
AngeloPr0 wrote on July 3, 2013, 7:35 pm:
Izbaci mi 2 erora
C:\Users\KORISNIK\Desktop\Stolac FR\gamemodes\CHDM.pwn(6422) : error 017: undefined symbol "UserPath
C:\Users\KORISNIK\DesktopStolac FR\gamemodes\CHDM.pwn(10576) : error 076: syntax error in the expression, or invalid function call"


Znaci eror je u ovome :
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);

dodaj negdje u skripti
stock UserPath(playerid)
{
new string,playername;
GetPlayerName(playerid,playername,sizeof(playername));
format(string,sizeof(string),PATH,playername);
return string;
}

a koja je 10576 linija?
Raza
5
Underboss
3. Jul 2013.
stock UserPath(playerid)
{
new string,playername;
GetPlayerName(playerid,playername,sizeof(playername));
format(string,sizeof(string),UserPath,playername);      ((to je 10576))
return string;
}
xyzcod2
5
Underboss
3. Jul 2013.
AngeloPr0 wrote on July 3, 2013, 8:23 pm:
stock UserPath(playerid)
{
new string,playername;
GetPlayerName(playerid,playername,sizeof(playername));
format(string,sizeof(string),UserPath,playername);      ((to je 10576))
return string;
}

bogami ako ja znam sta si ti diro po skripti i kako sta koristis..
pokusaj
        public OnPlayerConnect(playerid)
{
    //PlayAudioStreamForPlayer(playerid, "http://www.stolac.com/");
    SetPlayerCameraPos(playerid, 1107.6791,-1796.6454,16.5938);
SetPlayerCameraLookAt(playerid, spawnX, spawnY, spawnZ);
SendDeathMessage(INVALID_PLAYER_ID,playerid, 200);
    GangZoneShowForPlayer(playerid, FAFGZ, 0xF70A0A80);
    GangZoneShowForPlayer(playerid, PRGZ, 0xCFB91080);
    GangZoneShowForPlayer(playerid, SRGZ, 0x176AE880);
    GangZoneShowForPlayer(playerid, DBGZ, 0x05E61780);
ping = 0;
pokusaji = 0;
GPSon = 0;
GPSba = 0;
heal = 0;
Cit = 0;
GPSdo = 0;
GPSsp = 0;
Radio = 0;
UBanci = 0;
CB = 0;
// plivanje1 = 0;
// plivanje2 = 0;
//plivanje3 = 0;
new stringe;
format( files,sizeof(files), BAN_FILE, PlayerName(playerid) );
if( fexist(files) )
{
  format( stringe, sizeof(stringe), ":: %s ::", PlayerName(playerid) );
  SendClientMessage(playerid, -1, stringe);
  SendClientMessage(playerid, -1, "Vi ste banani sa ovog servera." );
  SendClientMessage(playerid, -1, "http://samp.com/" );
  Kick(playerid);
}
    new naslov2, text, strText;
    format(strText, 35, USER_FILE, PlayerName(playerid));
    if(INI_Exists(strText))
    {
        INI_ParseFile(strText(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        format(naslov2, sizeof(naslov2), ""#COL_WHITE"Logiranje");
        format(text, sizeof(text),""COL_LIGHTBLUE"________________________________________________\n\n"COL_WHITE"Dobrodosao na Stolac FR server!\n\n\n"#COL_LIGHTBLUE"%s\n"#COL_WHITE"Tvoj korisnicki racun je pronaden\n\n\nMolimo upisi svoju lozinku da udjes na server:\n\n"COL_LIGHTBLUE"________________________________________________", PlayerName(playerid));
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, naslov2, text, "Login", "Odustani");
    }
    else
    {
  format(naslov2, sizeof(naslov2), "Registracija");
    format(text, sizeof(text), ""COL_LIGHTBLUE"________________________________________________\n\n"COL_WHITE"Dobrodosao na Stolac FR server!\n\n\n"#COL_LIGHTBLUE"%s\n"#COL_WHITE"Tvoj korisnicki racun nije pronaden\n\n\nMolimo upisi svoju lozinku da se registriras:\n\n"COL_LIGHTBLUE"________________________________________________", PlayerName(playerid));
    ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, naslov2, text, "Register", "Odustani");
    }
SetPVarInt(playerid, "Prijavljen", 1);
OcistiChat(playerid);
return 1;
}


i
stock strText(playerid)
{
new string,playername;
GetPlayerName(playerid,playername,sizeof(playername));
format(string,sizeof(string),"/Korisnici/%s.ini",playername);
return string;
}

ili sad, ako imas di gore di definirano #define PATH "mjesto gdje se spremaju igraci" ili kako vec umesto path ugl. ako imas to #define ... onda umesto "/Korisnici/%s.ini" stavis to sto ti pise (znaci ako npr. ti pise #define USERPATH "/baa/%s.ini" onda ces umesto "/Korisnici/%s.ini" stavit USERPATH.) kontas?
Deleted User
Obrisan korisnik
4. Jul 2013.
AngeloPr0 wrote on July 3, 2013, 8:23 pm:
stock UserPath(playerid)
{
new string,playername;
GetPlayerName(playerid,playername,sizeof(playername));
format(string,sizeof(string),UserPath,playername);      ((to je 10576))
return string;
}

Ne mozes tako jer se tako lose pozivas opet na istu funkciju sve u svemu ne valja, a video sam pod connect da ti je putanja do fajla USER_FILE
stock UserPath(playerid)
{
new string,playername;
GetPlayerName(playerid,playername,sizeof(playername));
format(string,sizeof(string),USER_FILE,playername);      ((to je 10576))
return string;
}
Raza
5
Underboss
4. Jul 2013.
Znam razumijem vas, sve radim kao sto govorite al opet ne izbaci mi ni jedan eror, al kad udjem na srv opet isti problem ☹️

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha