17.06.2014, 19:40
There are many issues with the above:
- Don't use "mysql_query" for the query's name but some other name.
- The function mysql_free_result does not exist.
- mysql_real_escape_string returns the number of escaped characters and not the modified output of the string.
Like I said in your previous thread, you should update to R39 and then it can be:
- Don't use "mysql_query" for the query's name but some other name.
- The function mysql_free_result does not exist.
- mysql_real_escape_string returns the number of escaped characters and not the modified output of the string.
Like I said in your previous thread, you should update to R39 and then it can be:
pawn Код:
new Query[300]; // increase the size if it's not enough
mysql_format(database, Query, sizeof (Query), "INSERT INTO Master (username,password,email_address,ip_address,super_admin,old_ip) VALUES ('%e' , '%e', '%e', '%e', 0, 'UNKNOWN')", PlayerName(playerid), GetPVarStringEx(playerid, "TEMP_PASSWORD"), GetPVarStringEx(playerid, "TEMP_EMAIL"), GetPlayerIPEx(playerid));
mysql_tquery(database, Query, "", "");