[Pomoc]Registracija

Započeo Djolle
16. Maj 2012.
702
pregleda
15
postova
Djolle
2
Wheel Man
16. Maj 2012.
Skripta koju koristim:GTA RP Mod
Detaljan opis problema:Kada udjem na server registrujem se sve lijepo i kada odem relog opet se mora registrovat Ako neko moze da mi pomogne molim vas
Dio skripte://
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Jo0ker
4
Shot Caller
16. Maj 2012.
Pogledaj si dali ti sprema u scriptfilesima pod "users" ili "korisnici" igraca, i u skripti idi CTRL+F i traži "users" ili "korisnici" vidi dali su ti sva slova istom velicinom i vidi da ti je svugdje samo users ili  samo korisnici.
Djolle
2
Wheel Man
16. Maj 2012.
Jo0ker wrote on May 16, 2012, 7:31 pm:
Pogledaj si dali ti sprema u scriptfilesima pod "users" ili "korisnici" igraca, i u skripti idi CTRL+F i traži "users" ili "korisnici" vidi dali su ti sva slova istom velicinom i vidi da ti je svugdje samo users ili  samo korisnici.

Vidio sam Korisnici ima al taj folder ima i u scriptfiles isto Korisnici sve je normalno u njemu ima acc al svaki put se mora registrovat izgleda da nije do tog ☹️
sparrow95
4
Shot Caller
16. Maj 2012.
Vidi pod "OnPlayerConnect" gdje pretrazuje accounte
Djolle
2
Wheel Man
16. Maj 2012.
Ima pod OnPlayerConnect na pri kraju pise Korisnici/%s.ini...
sparrow95
4
Shot Caller
16. Maj 2012.
pa jel ti se napravi account u "Scriptfiles/Korisnici/Ime_Prezime.ini" 😕
Djolle
2
Wheel Man
16. Maj 2012.
Vrabac wrote on May 16, 2012, 7:52 pm:
pa jel ti se napravi account u "Scriptfiles/Korisnici/Ime_Prezime.ini" 😕

Napravi se ali kad udjem na srv mora se ponovo reg
sparrow95
4
Shot Caller
16. Maj 2012.
De postaj cijeli "OnPlayerConnect" i da vidimo ..
sparrow95
4
Shot Caller
16. Maj 2012.
daj "OnPlayerRequestClass" ..
Djolle
2
Wheel Man
16. Maj 2012.
public OnPlayerRequestClass(playerid, classid)
{
PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
PlayerInfo = Peds;

if (RegistrationStep == 0 && gPlayerLogged != 1)
{
ClearChatbox(playerid, 10);
SendClientMessage(playerid, COLOR_GREEN, " ~ Dobrodosli na Alfa Balkan StatePlay! ~");
SendClientMessage(playerid, COLOR_RED, " Sifra mora da ima manje od 12 slova! ");
SendClientMessage(playerid, COLOR_YELLOW2, " ");
SendClientMessage(playerid, COLOR_YELLOW2, " ");
SendClientMessage(playerid, COLOR_YELLOW2, " ");
SendClientMessage(playerid, COLOR_YELLOW2, " ");
SendClientMessage(playerid, COLOR_YELLOW2, " ");
SendClientMessage(playerid, COLOR_YELLOW2, " ");
if (gPlayerAccount != 0)
{
new loginstring;
new loginname;
GetPlayerName(playerid,loginname,sizeof(loginname));
format(loginstring,sizeof(loginstring),"-----SERBIAN-----\nDobrodosli, %s\nTaj nick je registrovan.\nUloguj se:\n\n-----ENGLISH-----\nDobrodosli, %s\nTaj nick je registrovan",loginname);
ShowPlayerDialog(playerid,12346,DIALOG_STYLE_INPUT,"Prijava",loginstring,"Prijava","Odustani");
}
else
{
gPlayerAccount = 0;
new regstring;
new regname;
GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),"Dobrodosli, %s\nNemate Korisnicki Racun.\nRegistrirajte se,Naputak:Vase ime mora da bude sa malim i velikim slovima u formatu Ime_Prezime!:",regname);
ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"Register",regstring,"Registriraj se","Izadji");
}
//PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
PlayerInfo = Peds;
SetPlayerTeamFromClass(playerid,classid);
}
else SpawnPlayer(playerid);
return false;

/*if (classid == 1)
{
format(string, sizeof(string), "~y~> ~p~Police Chief ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 2)
{
format(string, sizeof(string), "~y~> ~p~FBI/ATF Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 3)
{
format(string, sizeof(string), "~y~> ~p~National Guard General ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 4)
{
format(string, sizeof(string), "~y~> ~p~Fire/Ambulance Chief ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 5)
{
format(string, sizeof(string), "~y~> ~p~Espana Drogas Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 6)
{
format(string, sizeof(string), "~y~> ~p~Luciano Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 7)
{
format(string, sizeof(string), "~y~> ~p~Mayor ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 😎
{
format(string, sizeof(string), "~y~> ~p~Hitman Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 9)
{
format(string, sizeof(string), "~y~> ~p~News Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 10)
{
format(string, sizeof(string), "~y~> ~p~Taxi Cab Company Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 11)
{
format(string, sizeof(string), "~y~> ~p~License Faction Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 14)
{
format(string, sizeof(string), "~y~> ~p~Nortenos Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 15)
{
format(string, sizeof(string), "~y~> ~p~Grove Street Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 16)
{
format(string, sizeof(string), "~y~> ~p~Jefferson Saints Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else
{
format(string, sizeof(string), "~y~> ~g~Civilian ~y~<");
GameTextForPlayer(playerid,string,3500,6);
}
SetPlayerTeamFromClass(playerid,classid);
SetupPlayerForClassSelection(playerid);
return 1;*/
}
Evo
sparrow95
4
Shot Caller
16. Maj 2012.
Kolika ti je velicina stringa pod "OnPlayerConnect" ....
nadji mi "new string" pa mi reci koliko je "x"
Djolle
2
Wheel Man
16. Maj 2012.
Vrabac wrote on May 16, 2012, 8:08 pm:
Kolika ti je velicina stringa pod "OnPlayerConnect" ....
nadji mi "new string" pa mi reci koliko je "x"

new namestring = strfind(plname, "_", true);
if(namestring == -1)
{
Jel ovo?
sparrow95
4
Shot Caller
16. Maj 2012.
Umjesto
GetPlayerName(playerid, plname, sizeof(plname));
  format(string, sizeof(string), "Korisnici/%s.ini", plname);
  SendClientMessage(playerid, COLOR_GREEN, "AB Ucitavanje...");
  SendClientMessage(playerid, COLOR_GREEN, "Alfa Balkan server uklonjen!");
  if(fexist(string))
  {
      gPlayerAccount = 1;
  }
  else
  {
      gPlayerAccount = 0;
  }


stavi

  new string3;
  GetPlayerName(playerid, plname, sizeof(plname));
  format(string3, sizeof(string3), "Korisnici/%s.ini", plname);
  SendClientMessage(playerid, COLOR_GREEN, "AB Ucitavanje...");
  SendClientMessage(playerid, COLOR_GREEN, "Alfa Balkan server uklonjen!");
  if(fexist(string3))
  {
      gPlayerAccount = 1;
  }
  else
  {
      gPlayerAccount = 0;
  }


probaj ovo da vidim jel do velicine stringa..
Djolle
2
Wheel Man
16. Maj 2012.
BRATE RADI HVALA TI PUNO    😁

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha