Problem

Započeo Zero[S], Jun 20, 2010, 16:44:24 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Imam problem,mi sad imamo server na hamachiu,i ja pokrecem,ja se regam i login bez problema a drugi nemogu se register meni pise u logu samo login in neznam u cemu  bi bio problem

cek nekuzim te ti si se ulogiro na server /register password /login paswwor i sve radi a drugi to nemogu?? ako sam skonto dobro probaj ovako

ctr+f upisi /login i zamjeni s ovim:
//-------------------------------[Login]--------------------------------------------------------------------------
if (strcmp(cmd, "/login", true) ==0 )
{
    if(IsPlayerConnected(playerid))
    {
        new tmppass[64];
if(gPlayerLogged[playerid] == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "SERVER: Vec ste logirani.");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "KORISTITE: /login <lozinka>");
return 1;
}
strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
Encrypt(tmppass);
OnPlayerLogin(playerid,tmppass);
}
return 1;
}
if (strcmp(cmd, "/register", true) ==0 )
{
    if(IsPlayerConnected(playerid))
    {
        if(gPlayerLogged[playerid] == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "SERVER: Vec ste logirani.");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s.ini", sendername);
new File: hFile = fopen(string, io_read);
if (hFile)
{
SendClientMessage(playerid, COLOR_YELLOW, "To ime vec postoji, molimo uzmite drugo ime.");
fclose(hFile);
return 1;
}
        new tmppass[64];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "KORISTITE: /register <lozinka>");
return 1;
}
strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
Encrypt(tmppass);
OnPlayerRegister(playerid,tmppass);
}
return 1;
}

Poslednja Izmena: Jun 20, 2010, 17:22:02 POSLE PODNE od Kiki_Radeon