Bug in the system of registration and login.
#5

Hey guys, i'm working in the same project with him.

» OnPlayerConnect

pawn Код:
public OnPlayerConnect(playerid)
{
    GetPlayerName(playerid, name, 30);
       if(strlen(name) > 10)
    {
        pMessage(playerid, Red "Use a nick with a maximum of 10 characters);
        SetTimer("
TimerKick", 500, 0);
        return 1;
    }

    GetPlayerName(playerid, name, 30);
    TextDrawSetString(TextInicial[11], name);
    TextDrawShowForPlayer(playerid, TextInicial[11]);
   
        for(new nMsg = 0; nMsg < 20; nMsg++) SendClientMessage(playerid, -1, "
");

   
    SelectTextDraw(playerid, 0xFFFFFFFF);
    for(new i = 0; i < sizeof(TextInicial); i++)
    {
        TextDrawShowForPlayer(playerid, TextInicial[i]);
    }
   
    GetPlayerName(playerid, name, 30);
   
    mysql_format(conexao, query, sizeof(query), "
SELECT * FROM `players` WHERE `Nick` = '%s' LIMIT 1", name);

    return 1;
}
Where can we search to find the bug?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)