Can anyone tell me why this won't insert?
#3

Quote:
Originally Posted by Eth
Посмотреть сообщение
try this:
pawn Код:
GetPlayerIp(playerid, ip, sizeof(ip));
mysql_format(connection, query, sizeof(query), "INSERT INTO `accounts` (`Name`, `Password`, `IP`) VALUES ('%s', '%e', '%s')", GetName(playerid), inputtext, ip);
mysql_function_query(connection, query, false, "", "");

SetTimerEx("CheckTimer", 2000, false, "i", playerid);
SendClientMessage(playerid, COLOR_RED, "**************************************");
SendClientMessage(playerid, COLOR_GREEN, "You have successfully registered!");
SendClientMessage(playerid, COLOR_GREEN, "PASSWORD USED:");
SendClientMessage(playerid, COLOR_GREEN, inputtext);
SendClientMessage(playerid, COLOR_RED, "**************************************");
Lol.. I'm so dumb.. I had a stock that saves on OnPlayerUpdate and it had an issue there, therefore it didn't save shit, lol.. Thank you anyways bro, +rep
Reply


Messages In This Thread
Can anyone tell me why this won't insert? - by Ox1gEN - 31.08.2014, 04:38
Re: Can anyone tell me why this won't insert? - by Eth - 31.08.2014, 04:48
Re: Can anyone tell me why this won't insert? - by Ox1gEN - 31.08.2014, 04:53

Forum Jump:


Users browsing this thread: 1 Guest(s)