Jump to content
  • 0

Problema...


VipBo$$

Question

Salut din nou samperisti-lor.

Sa incep din nou cu problmele mele? =))

Eu zic ca da.

Deci de curand mi-am achizitionat un host si dupa ce am incarcat tot ce trebuie pe el imi da asta in server_log.txt:

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[21:19:17]
[21:19:17] Server Plugins
[21:19:17] --------------
[21:19:17]  Loading plugin: crashdetect.so
[21:19:17]   CrashDetect v4.15.1 is OK.
[21:19:17]   Loaded.
[21:19:17]  Loading plugin: sscanf.so
[21:19:17]

[21:19:17]  ===============================

[21:19:17]       sscanf plugin loaded.     

[21:19:17]          Version:  2.8.2        

[21:19:17]    (c) 2012 Alex "Y_Less" Cole  

[21:19:17]  ===============================

[21:19:17]   Loaded.
[21:19:17]  Loading plugin: streamer.so
[21:19:17]

** Streamer Plugin v2.7.7 by Incognito loaded **

[21:19:17]   Loaded.
[21:19:17]  Loading plugin: mysql.so
[21:19:17]  >> plugin.mysql: R34 successfully loaded.
[21:19:17]   Loaded.
[21:19:17]  Loading plugin: nativechecker.so
[21:19:17]   Loaded.
[21:19:17]  Loaded 5 plugins.

[21:19:17]
[21:19:17] Filterscripts
[21:19:17] ---------------
[21:19:17]   Loaded 0 filterscripts.
[21:19:18]  
[21:19:18]  
[21:19:18]  
[21:19:18]  =======================================
[21:19:18]  |                                     |
[21:19:18]  |        YSI version 3.09.0684        |
[21:19:18]  |        By Alex "Y_Less" Cole        |
[21:19:18]  |                                     |
[21:19:18]  =======================================
[21:19:18]  
[21:19:18] [MySQL Houses]: 0
[21:19:18] [MySQL Vehicles]: 0 server vehicles loaded.
[21:19:18] [MySQL Clans]: 0 clans loaded.
[21:19:18] [MySQL Bussines]: 0
[21:19:18] [MySQL Turfs]: 0
[21:19:18] [MySQL Factions]: 0
[21:19:18] [MySQL Trainings]: 0
[21:19:18] [MySQL Jobs]: 0 loaded...
[21:19:18] [MySQL Furniture]: 0 objects loaded.
[21:19:18] [MySQL SafeZone]: 0 loaded...
[21:19:18] Number of vehicle models: 95
[21:19:18] ====================================================================
[21:19:18] Error ID: 2006, Eroare: MySQL server has gone away
[21:19:18] Callback: LoadDSVeh
[21:19:18] gQuery: SELECT * FROM `dsveh`
[21:19:18] ====================================================================
[21:19:18] ====================================================================
[21:19:18] Error ID: 2006, Eroare: MySQL server has gone away
[21:19:18] Callback: PreLoadCars
[21:19:18] gQuery: SELECT MAX(ID) FROM `cars`
[21:19:18] ====================================================================

 

 

In gamemode este asta:

 

function LoadDSVeh()
{
    dsvehs = cache_num_rows();
    for(new i = 1; i <= dsvehs; i++)
    {
        new j = i - 1;
        DSModels[dID]                 = cache_get_field_content_int(j, "ID");
        DSModels[dModel]             = cache_get_field_content_int(j, "Model");
        DSModels[dPrice]             = cache_get_field_content_int(j, "Price");
        DSModels[dDoors]             = cache_get_field_content_int(j, "Doors");
        DSModels[dType]              = cache_get_field_content_int(j, "Type");
        DSModels[dPremium]             = cache_get_field_content_int(j, "Premium");
        DSModels[dMaxSpeed]          = cache_get_field_content_int(j, "MaxSpeed");
        DSModels[dGold]          = cache_get_field_content_int(j, "Gold");
    }
    printf("[MYSQL DShip Vehicles]: %d", dsvehs);
}

 

Si...

 

function LoadSystems()
{
    new query[256];
    mysql_format(SQL, query, sizeof(query), "SELECT * FROM `dsveh`");
    mysql_tquery(SQL, query, "LoadDSVeh", "");

    mysql_format(SQL, query, sizeof(query), "SELECT MAX(ID) FROM `cars`");
    mysql_tquery(SQL, query, "PreLoadCars", "");
}

Multumesc multa, bafta!

 

Edited by AlexBo$$

g4JGBJX.gif.31953391ab64171df562293ad37a0875.gif.9d26b39cd3270634d9cf89dcb43fba87.gif

 

 

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Nu ma prea pricep eu la dinastea dar cred ca e ceva cu my_sql-ul,ai incercat sa dai un mic research pe google cu ce eroare ai primit? ( Error ID: 2006, Eroare: MySQL server has gone away ) incerca sa cauti.

Nab in Pawno

Link to comment
Share on other sites

  • 0
Acum 58 minute, Alin69 a spus:

Nu ma prea pricep eu la dinastea dar cred ca e ceva cu my_sql-ul,ai incercat sa dai un mic research pe google cu ce eroare ai primit? ( Error ID: 2006, Eroare: MySQL server has gone away ) incerca sa cauti.

Am rezolvat de mult asta, oricum ms de parere. :)

g4JGBJX.gif.31953391ab64171df562293ad37a0875.gif.9d26b39cd3270634d9cf89dcb43fba87.gif

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.