• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] sqlite and inputtext
#2
If you're using YSI, just do this:

Code:
strcpy(gUserData[playerid][USER_PASSWORD], inputtext);

mysql_format (db_handle, query, sizeof query, "INSERT INTO users (nickname, password) VALUES ('%q', '%e')", gUserData[playerid][USER_NICKNAME], gUserData[playerid][USER_PASSWORD]);

It should work now.
Using Pawn.CMD?

If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
  Reply


Messages In This Thread
sqlite and inputtext - by robertocaribbean - 2021-03-21, 05:42 PM
RE: sqlite and inputtext - by Pinch - 2021-03-21, 05:45 PM
RE: sqlite and inputtext - by robertocaribbean - 2021-03-21, 06:37 PM
RE: sqlite and inputtext - by Bakr - 2021-03-21, 08:25 PM
RE: sqlite and inputtext - by robertocaribbean - 2021-03-21, 08:50 PM
RE: sqlite and inputtext - by Threshold - 2021-03-24, 04:46 AM
RE: sqlite and inputtext - by robertocaribbean - 2021-03-24, 02:14 PM

Forum Jump: