I need help to check if player exist MYSQL
#6

Quote:
Originally Posted by ubunttu
Посмотреть сообщение
mysql_format(ConnectMYSQL, refferquery, sizeof refferquery, "SELECT `Username` FROM accounts WHERE Username = '%s' LIMIT 1", Nameid);
mysql_tquery(ConnectMYSQL, refferquery, "CheckRefferExist", "iss", playerid, Nameid, nlocalreffer);
What is this Nameid?
Change it to inputtext or nlocalreffer

And in your CheckRefferExist there are 2 params while you gave 3 in tquery

PHP код:
mysql_format(ConnectMYSQLrefferquerysizeof(refferquery), "SELECT `Username` FROM accounts WHERE Username = '%s' LIMIT 1"inputtext);
                    
mysql_tquery(ConnectMYSQLrefferquery"CheckRefferExist""iss"playeridinputtext); 
And i think your variable nlocalreffer is useless since the name is saved in inputtext
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)