Detaljan opis problema: Uradio sam register/login sistem od 0, register deo radi ali kada doÄ'e deo kod logina skripta i taÄnu i netaÄnu lozinku, i server se zamrzne, stavio sam i debug.
Dio skripte:
[pawn]case D_LOGIN:
{
if(!response) return Kick(playerid);
if(pogresnalozinka[playerid] == 3) return Kick(playerid);
if(udb_hash(inputtext) == PI[playerid][Lozinka]) return SpawnujIgraca(playerid);
else ShowPlayerDialog(playerid, D_LOGIN, DIALOG_STYLE_PASSWORD, ""C_MOJA"Login{FFFFFF}.", "{FFFFFF}Vas account je pronadjen\nUpisite Vasu lozniku ispod\n{FF0000}POGREÅ NA LOZINKA!!!\n\n\n", "OK", "X"), pogresnalozinka[playerid]++;
}[/pawn]
[pawn]
SpawnujIgraca(playerid)
{
new firststring[256], d, m ,g, s, minut, sek, datum[15], sat[10];
getdate(g, m, d);
gettime(s, minut, sek);
format(datum, sizeof(datum), "%d.%d.%d", d, m, g);
format(sat, sizeof(sat), "%d:%d:%d", s, minut, sek);
ClearChat(playerid, 50);
SendClientMessage(playerid, SRWBOJA, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
format(firststring, sizeof(firststring), "[CGRP] %s{FFFFFF}, dobro došli nazad na "C_MOJA"City Gaming RP{FFFFFF}, lepo se zabavite", RPIme(playerid));
SendClientMessage(playerid, SRWBOJA, firststring);
SendClientMessage(playerid, SRWBOJA, "{FFFFFF}Drago nam je što ste se vratili kod nas, ukoliko Vam treba pomoć obratite se stavu putem komande "C_MOJA"/pomoc{FFFFFF}.");
SendClientMessage(playerid, SRWBOJA, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
print("Debug 1");
SpawnPlayer(playerid);
print("Debug 2");
SetPlayerPos(playerid, 1484.5386, -1733.4216, 13.3828);
print("Debug 3");
return 1;
}
[/pawn]
[pawn]
[join] Helou has joined the server (0:127.0.0.1)
Debug 1
Debug 2
Debug 3
[part] Helou has left the server (0:1)
[/pawn]
Neke slike/video za lakse dobivanje pomoci(neobavezno): //
Daj OnDialogResponse
Dao sam dijalog za login, ne znam što je ceo potreban.
Rešeno, lock