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)://
[Pomoc]Registracija
702
pregleda
15
postova
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.
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 ☹️
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
{
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
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"
nadji mi "new string" pa mi reci koliko je "x"
new namestring = strfind(plname, "_", true);
if(namestring == -1)
{
Jel ovo?
16. Maj 2012.
Umjesto
stavi
probaj ovo da vidim jel do velicine stringa..
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..
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava