Mysql Statments
#8

pawn Код:
mysql_format(1, add,sizeof(add),"INSERT INTO users (pName, pPass, pMoney, pAdmin, pWarnings, pPolice, pGang, pHorseshoes, pScore, pDealer, pJob, pDay, pMonth, pYear) VALUES ('%s', %i, 10000, 0, 0, 0, 0, 0, 0, 0, 0, %i, %i, %i",PlayerName(playerid), udb_hash(inputtext), Day, Month, Year);
In short, when ever you use %s, surround it with '. So it would be '%s'.
Reply


Messages In This Thread
Mysql Statments - by nezo2001 - 04.06.2015, 14:04
Re: Mysql Statments - by Luis- - 04.06.2015, 14:06
Re: Mysql Statments - by Konstantinos - 04.06.2015, 14:09
Re: Mysql Statments - by dusk - 04.06.2015, 16:28
Re: Mysql Statments - by nezo2001 - 05.06.2015, 10:17
Re: Mysql Statments - by Konstantinos - 05.06.2015, 10:24
Re: Mysql Statments - by nezo2001 - 05.06.2015, 10:38
Re: Mysql Statments - by dusk - 05.06.2015, 10:42
Re: Mysql Statments - by nezo2001 - 05.06.2015, 10:52
Re: Mysql Statments - by Konstantinos - 05.06.2015, 10:56

Forum Jump:


Users browsing this thread: 1 Guest(s)