Jump to content

[REZOLVAT] Problema la Register


Costin
 Share

Recommended Posts

1 minute ago, ImWest said:

Trebuie sa actualizezi plugin-urile.. uita-te sa vezi daca are libsql.dll

Daca nu incearca alte plugin-uri

Nu stau sa fac aici chat cu tine, toate pluginurile sunt updatate , e conectat la baza de date, e tot bine, o fi ceva la el.

imageproxy.png.7955d17348e1ec24f67282204f827f45.png

Link to comment
Share on other sites

  • Replies 26
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Chiar acum, Heloo12017 a spus:

Nu stau sa fac aici chat cu tine, toate pluginurile sunt updatate , e conectat la baza de date, e tot bine, o fi ceva la el.

Am incercat sa te ajut..

Daca tu zici ca e totul bine de ce nu porneste? :)))

Link to comment
Share on other sites

Acum 3 ore, Heloo12017 a spus:

Apasa CTRL + F si vezi acolo ca e..

Codul pe care ti l-am cerut se afla pe undeva pe la functia OnPlayerConnect....

Respecta si vei fi respectat.

 

BigInt Pawn:

Pacman C++: 

Snake C++:

Minesweeper C++:

 

mattbb.cash

leaks.ro

Link to comment
Share on other sites

Mi se pare ipocrizie maximă.

După ce că încearcă să te ajute și își pierde timpul cu tine, mai și reacționezi urât. 

E un gamemode de pe net, e normal să aibe probleme, nu știi să le rezolvi, nu te apuca, în plus, dacă ceri ajutorul, nu reacționa așa, nu ar trebui să te mai ajute nimeni.

Ia-ți alt gamemode și gata.

Link to comment
Share on other sites

if(rows == 0)
    {
        new charCounts[5];
 
        GetPlayerName(extraid, szPlayerName, MAX_PLAYER_NAME);
        for(new n; n < MAX_PLAYER_NAME; n++)
        {
            switch(szPlayerName[n])
            {
                case '[', ']', '.', '$', '(', ')', '@', '=': charCounts[1]++;
                case '_': charCounts[0]++;
                case '0' .. '9': charCounts[2]++;
                case 'a' .. 'z': charCounts[3]++;
                case 'A' .. 'Z': charCounts[4]++;
            }
            if(charCounts[0] == 0 || charCounts[0] >= 3)
            {
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_GENANNOUNCE, ""ALBASTRU"Server:{FFFFFF} Bine ai venit pe "SERVER_NAME".");
                ShowPlayerDialog(extraid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Inregistrare", ""ALB"Bine ai venit pe "ALBASTRU""SERVER_NAME""ALB"!\n\nNu detii un cont.\nTe rog sa inregistrezi contul tau tastand o parola mai jos.", "Register", "Cancel");
            }
            else if(charCounts[1] >= 1)
            {
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_GENANNOUNCE, ""ALBASTRU"Server:{FFFFFF} Bine ai venit pe "SERVER_NAME".");
                ShowPlayerDialog(extraid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Inregistrare", ""ALB"Bine ai venit pe "ALBASTRU""SERVER_NAME""ALB"!\n\nNu detii un cont.\nTe rog sa inregistrezi contul tau tastand o parola mai jos.", "Register", "Cancel");
            }
            else if(charCounts[2] >= 1)
            {
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_GENANNOUNCE, ""ALBASTRU"Server:{FFFFFF} Bine ai venit pe "SERVER_NAME".");
                ShowPlayerDialog(extraid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Inregistrare", ""ALB"Bine ai venit pe "ALBASTRU""SERVER_NAME""ALB"!\n\nNu detii un cont.\nTe rog sa inregistrezi contul tau tastand o parola mai jos.", "Register", "Cancel");
            }
            else if(charCounts[3] == strlen(szPlayerName) - 1)
            {
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_GENANNOUNCE, ""ALBASTRU"Server:{FFFFFF} Bine ai venit pe "SERVER_NAME".");
                ShowPlayerDialog(extraid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Inregistrare", ""ALB"Bine ai venit pe "ALBASTRU""SERVER_NAME""ALB"!\n\nNu detii un cont.\nTe rog sa inregistrezi contul tau tastand o parola mai jos.", "Register", "Cancel");
            }
            else if(charCounts[4] == strlen(szPlayerName) - 1)
            {
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_GENANNOUNCE, ""ALBASTRU"Server:{FFFFFF} Bine ai venit pe "SERVER_NAME".");
                ShowPlayerDialog(extraid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Inregistrare", ""ALB"Bine ai venit pe "ALBASTRU""SERVER_NAME""ALB"!\n\nNu detii un cont.\nTe rog sa inregistrezi contul tau tastand o parola mai jos.", "Register", "Cancel");
            }
            else
            {
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_GENANNOUNCE, ""ALBASTRU"Server:{FFFFFF} Bine ai venit pe "SERVER_NAME".");
                ShowPlayerDialog(extraid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Inregistrare", ""ALB"Bine ai venit pe "ALBASTRU""SERVER_NAME""ALB"!\n\nNu detii un cont.\nTe rog sa inregistrezi contul tau tastand o parola mai jos.", "Register", "Cancel");
            }
        }
    }

Nu imi dau seama ce ai incercat sa faci aici dar nu se executa unul din if-urile care contine dialogul de register.

Incearca:

if(rows == 0)
    {
		SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_WHITE, "");
                SendClientMessage(extraid, COLOR_GENANNOUNCE, ""ALBASTRU"Server:{FFFFFF} Bine ai venit pe "SERVER_NAME".");
                ShowPlayerDialog(extraid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Inregistrare", ""ALB"Bine ai venit pe "ALBASTRU""SERVER_NAME""ALB"!\n\nNu detii un cont.\nTe rog sa inregistrezi contul tau tastand o parola mai jos.", "Register", "Cancel");
    }

 

Respecta si vei fi respectat.

 

BigInt Pawn:

Pacman C++: 

Snake C++:

Minesweeper C++:

 

mattbb.cash

leaks.ro

Link to comment
Share on other sites

OG-TIMES\pawno\include\progress.inc(106) : warning 219: local variable "result" shadows a variable at a preceding level
OG-TIMES\gamemodes\OG-TM.pwn(32380) : error 017: undefined symbol "charCounts"
OG-TIMES\gamemodes\OG-TM.pwn(32380) : warning 215: expression has no effect
OG-TIMES\gamemodes\OG-TM.pwn(32380) : error 001: expected token: ";", but found "]"
OG-TIMES\gamemodes\OG-TM.pwn(32380) : error 029: invalid expression, assumed zero
OG-TIMES\gamemodes\OG-TM.pwn(32380) : fatal error 107: too many error messages on one line

 

Imi da eroarea asta..

Edited by Heloo12017

imageproxy.png.7955d17348e1ec24f67282204f827f45.png

Link to comment
Share on other sites

Probabil nu ai implementat bine ce ti-am dat eu. Functia ta ar trebui sa arate asa:

public CheckAccountUserName(extraid)
{
    cache_get_data(rows, fields, handle);
    if(rows == 0)
    {
        SendClientMessage(extraid, COLOR_WHITE, "");
        SendClientMessage(extraid, COLOR_WHITE, "");
        SendClientMessage(extraid, COLOR_WHITE, "");
        SendClientMessage(extraid, COLOR_WHITE, "");
        SendClientMessage(extraid, COLOR_WHITE, "");
        SendClientMessage(extraid, COLOR_WHITE, "");
        SendClientMessage(extraid, COLOR_WHITE, "");
        SendClientMessage(extraid, COLOR_WHITE, "");
        SendClientMessage(extraid, COLOR_GENANNOUNCE, ""ALBASTRU"Server:{FFFFFF} Bine ai venit pe "SERVER_NAME".");
        ShowPlayerDialog(extraid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Inregistrare", ""ALB"Bine ai venit pe "ALBASTRU""SERVER_NAME""ALB"!\n\nNu detii un cont.\nTe rog sa inregistrezi contul tau tastand o parola mai jos.", "Register", "Cancel");
    }
    else
    {
        if(tempbanat[extraid] == 0)
        {  
            InterpolateCameraPos(extraid, 1689.3907,-1732.2874,20.3228,1062.3051,-1732.3589,24.6772, 10000, CAMERA_MOVE);
            InterpolateCameraLookAt(extraid,1062.3051,-1732.3589,24.6772,1062.3051,-1732.3589,24.6772, 10000, CAMERA_MOVE);
 
            SendClientMessage(extraid, COLOR_GENANNOUNCE, ""ALBASTRU"Server:{FFFFFF} Bine ai venit pe "SERVER_NAME".");
            ShowPlayerDialog(extraid, 55, DIALOG_STYLE_PASSWORD, "Logare", ""ALB"Bine ai venit pe "ALBASTRU""SERVER_NAME""ALB" !\n\nVa rugam sa scrieti parola mai jos pentru a va conecta pe server.", "Login", "Cancel");
                       
            SetPlayerWeather(extraid, 0);              
        }
    }
    return 1;
}

Daca nu e de aici, arata-mi linia unde iti apare eroarea.

Respecta si vei fi respectat.

 

BigInt Pawn:

Pacman C++: 

Snake C++:

Minesweeper C++:

 

mattbb.cash

leaks.ro

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...