Help Errors please ASAP!
#4

it is:

pawn Код:
public OnPlayerConnect(playerid)
{
new query[126], pName[MAX_PLAYER_NAME];

GetPlayerName(playerid, pName, sizeof(pName));

format(query, sizeof(query), "SELECT * FROM acc WHERE name = '%s'", pName);
mysql_query(query);
mysql_store_result();

if(mysql_num_rows() == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "That username is registered!");
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT, "Login", "Please login", "Login", "Cancel");
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "That username is not registered, please register");
}

    return 1;
}
With MAX_PLAYER_NAME
Not MAX_PLAYERS_NAME

wish helped
Reply


Messages In This Thread
Help Errors please ASAP! first reply +1rep - by BradNunchr - 20.12.2013, 08:07
Re: Help Errors please ASAP! - by BradNunchr - 20.12.2013, 08:43
Re: Help Errors please ASAP! - by Hybris - 20.12.2013, 08:51
Re: Help Errors please ASAP! - by qazwsx - 20.12.2013, 08:53
Re: Help Errors please ASAP! - by niels44 - 20.12.2013, 08:55
Re: Help Errors please ASAP! - by caoraivoso3 - 20.12.2013, 08:55

Forum Jump:


Users browsing this thread: 1 Guest(s)