SA-MP Forums Archive
MYSQL[DB] Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: MYSQL[DB] Problem (/showthread.php?tid=580220)



MYSQL[DB] Problem - Crystallize - 03.07.2015

OK so i'm trying to run the TF2 script by CuervO https://sampforum.blast.hk/showthread.php?tid=398015
I've created the database , imported the sa-mp.sql file http://prntscr.com/7oddbo but this error shows up
Код:
[SERVER CRITICAL ERROR]: Didn't find any configuration database.
[11:00:41]
Gamemode LINE:
Код:
forward OnConfigurationLoaded();
public OnConfigurationLoaded()
{
    new rows, fields;
    cache_get_data(rows, fields);
    if(!rows)
    {
        print("[SERVER CRITICAL ERROR]: Didn't find any configuration database.");
        SendRconCommand("exit");
    }
    else
    {
        DamageMultiplier = cache_get_field_content_float(0, "damagemul");
        CritChanceMultiplier = cache_get_field_content_float(0, "critchancemul");
        SpawnTimeMultiplier = cache_get_field_content_float(0, "spawntimemul");
        Vote = cache_get_field_content_int(0, "vote");
        VoteKick = cache_get_field_content_int(0, "votekick");
        VoteBan = cache_get_field_content_int(0, "voteban");
        VoteScramble = cache_get_field_content_int(0, "votescramble");
        VoteMode = cache_get_field_content_int(0, "votemode");
        VoteReset = cache_get_field_content_int(0, "votereset");
        DefWeather = cache_get_field_content_int(0, "DefWeather");
        DefTime = cache_get_field_content_int(0, "DefTime");
The SA-MP.sql file http://pastebin.com/ecRYKMsw

I've been dealing with this error since hours and it's nightmare I can't solve this one I have no idea why it's doing that


Re: MYSQL[DB] Problem - Crystallize - 03.07.2015

BUMP , help would be appreciated :/ sorry for the bump but I have to take server UP since my hosted tab is running out


Re: MYSQL[DB] Problem - Abagail - 03.07.2015

There are no rows being imported by the .sql file, and there are no rows which is why that message shows.


Re: MYSQL[DB] Problem - Crystallize - 03.07.2015

Quote:
Originally Posted by Abagail
Посмотреть сообщение
There are no rows being imported by the .sql file, and there are no rows which is why that message shows.
So how do you create a row in phpmyadmin? As this is my first time using mysql and learning in same time , would appreciate if you help me , thanks a lot!


Re: MYSQL[DB] Problem - Abagail - 03.07.2015

If using phpMyAdmin, click "Insert" in the navigation bar.


Re: MYSQL[DB] Problem - Crystallize - 03.07.2015

Quote:
Originally Posted by Abagail
Посмотреть сообщение
If using phpMyAdmin, click "Insert" in the navigation bar.
But they are already made !? http://prntscr.com/7ofla7 http://prntscr.com/7oflfj


Re: MYSQL[DB] Problem - Crystallize - 03.07.2015

OK I think i've fixed it as it shows [SERVER SUCCESS]: Loaded configuration from database successfully.
The problem is now when I join the server , it stops itself lol?