MYSQL[DB] Problem
#1

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
Reply
#2

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

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

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!
Reply
#5

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

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
Reply
#7

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)