Mysql help.
#1

First of all just excuse me if i'm doing a mess or an illogical thing or smthin.
I'm making on phpmyadmin a databse, with table users and when a player is connecting i'm trying to put the name in the table users in the case "Name" but it is not inserting, and the compiler is having no-erros. What is wrong with what i've done here?

CODE:

Top of the script
Код:
#include <a_samp>
#include <sscanf2>
#include <zcmd>
#include <a_mysql>

new SQL = -1;
new gQuery[256];
#if defined FILTERSCRIPT
On player connect

Код:
public OnPlayerConnect(playerid)
{
	gQuery[0] = EOS;
	new GetName[MAX_PLAYER_NAME];
	GetPlayerName(playerid, GetName, sizeof(GetName));
	mysql_format(SQL, gQuery, sizeof(gQuery), "INSERT INTO `accounts` (`Name`) VALUES  ('%s')", GetName);
	return 1;
}
Photo with php my admin
Reply


Messages In This Thread
Mysql help. - by Fabyx15 - 04.12.2018, 19:00
Re: Mysql help. - by Vizi10 - 04.12.2018, 20:14
Re: Mysql help. - by Calisthenics - 05.12.2018, 10:39
Re: Mysql help. - by GTLS - 06.12.2018, 11:58

Forum Jump:


Users browsing this thread: 2 Guest(s)