PHP код:
if(dialogid == REGISTER)
{
if(!response) return Kick(playerid);
new query[300];
cache_insert_id();
mysql_format(OCP, query, sizeof(query), "INSERT INTO `account` (`Name`, `Password`) VALUES ('%s', '%s')", GLN(playerid), inputtext);
SendClientMessage(playerid, -1, "Sucessful.");
}
stock GLN(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
return name;
}
The code doesn't have any problem but it still can't Insert the new account to my Database, someone pls help me!