Results 1 to 10 of 11

Thread: Store player informations with MySQL.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Private
    Join Date
    Jun 2015
    Posts
    15
    Thanks
    5
    Thanked 3 Times in 3 Posts
    Thank you for replying.
    1. I'm new to MySQL so I'm kinda struggling with it.
    2. Will try and make a report on it.
    3. I'm testing CoDUOExtended (made by phpcod, not yet released), thus I can just use provided functions/methods.
    4. I use phpmyadmin to confirm: no changes were made in the database but still, my connection exists: if not, the game crashes.
    PHP Code:
    mysql_stuff() 
    {
        
    level.host getCvar("mysql_host"); 
        
    level.pass getCvar("mysql_password"); 
        
    level.database getCvar("mysql_database"); 
        
    level.user getCvar("mysql_user");  
        
    level.table getCvar("mysql_table");
        
        
    level.mysql_connection xmysql_connect(level.hostlevel.userlevel.passlevel.database3306);    
        
        if(!
    isdefined(level.mysql_connection) || level.mysql_connection == 0
        {
            
    logprint("mysql not defined");
            return;
        }
        else
            
    logprint("MySQL: Connect to "level.host +" successfully");

    5. I forgot it.

  2. The Following User Says Thank You to ebusiangamers For This Useful Post:

    kung foo man (4th July 2015)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •