SA-MP Forums Archive
Little bug with insert into database name - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Little bug with insert into database name (/showthread.php?tid=643338)



Little bug with insert into database name - Klayton - 18.10.2017

Hello sa:mp


A name of the player of the dialog style input, does not insert into database

How to fix please ?



Script screen


http://prntscr.com/gyqdfx


https://prnt.sc/gyqdvj


Re: Little bug with insert into database name - Eoussama - 18.10.2017

I would assume that the username is a string, however, you went ahead and stored there an integer?
PHP Code:
//wrong
strval(inputtext)

//Do this instead
inputtext 



Re: Little bug with insert into database name - Klayton - 18.10.2017

Yeah thank's its okay with inputtext !
+rep