• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] sqlite and inputtext
#3
(2021-03-21, 05:45 PM)Pinch Wrote: 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.



Thank you! I am trying to add y_svar but the compiler throws an error.

Code:
C:\Projects\SAMP\Server\dependencies\YSI-Includes\YSI_Storage\y_svar\y_svar_ini.inc:122 (error) undefined symbol "INI_WriteArray"

Do you know how to fix it?



Code:
#define MODE_NAME "SavedText"

#include <YSI_Storage/y_svar>

I placed it after the "fixes" include. I also tried placing it in a place before "fixes" but it throws other even weirder errors.
  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: