Passwords, take of the server.
#1

Код:
if(!response) return Kick(playerid);
if(!strlen(inputtext)) return SendClientMessage(playerid, color_gray, "ERROR: Wrong");
if(strlen(inputtext) < 6 || strlen(inputtext) > 16) return SendClientMessage(playerid, color_gray, "ERROR: Wrong");
Somehow, unregister player, attack my server and shut him down!
That's not a files error,
some password that he do. take off the server.
Someone can help me? Please!
Reply
#2

The percent symbol (%) can crash the server if it's used in inputtext.

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    for (new i, length = strlen(inputtext); i != length; ++i)
    {
        if (inputtext[i] == '%') inputtext[i] = '#';
    }
    // rest of code..
Reply
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
The percent symbol (%) can crash the server if it's used in inputtext.

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    for (new i, length = strlen(inputtext); i != length; ++i)
    {
        if (inputtext[i] == '%') inputtext[i] = '#';
    }
    // rest of code..
only %? what about ~?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)