03.10.2014, 20:41
pawn Код:
public OnPlayerConnect(playerid)
{
new query[126], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,sizeof(pName));
format(query,sizeof(query),"SELECT * FROM account Where name = '%s'",pName);
mysql_query(query);
mysql_store_result();
if(mysql_num_rows() == 1)
{
SendClientMessage(playerid,-1,"This username is registred please log-in.");
ShowPlayerDialog(playerid,0,DIALOG_STYLE_INPUT,"Login","Please enter your password","Login","Cancel");
}
else
return SendClientMessage(playerid,-1,"This username is not registred you may register.");
return 1;
}
error 017: undefined symbol "mysql_query"