04.12.2018, 19:00
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
On player connect
Photo with php my admin
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
Код:
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; }