MySql problem!
#1

PHP код:
if(dialogid == REGISTER)
{
    if(!
response) return Kick(playerid);
    new 
query[300];
    
cache_insert_id();
    
mysql_format(OCPquerysizeof(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!
Reply
#2

Do mysql_query(OCP,query) line
Reply
#3

Set fields default values in the database, and check mysql log.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)