Undefined symbol problem
#1

Error:
pawn Код:
C:\Users\TrippleX\Desktop\Trucking\gamemodes\rp.pwn(58) : error 017: undefined symbol "connectToMysql"
Part of code that has this in:
pawn Код:
public OnGameModeInit()
{
    mysql_debug(false);
    print("Connecting to MySQL server..");
    connectToMysql();
    SetGameModeText("Transporterite Paradiis");
    ShowPlayerMarkers(false);
    DisableInteriorEnterExits();
    AddPlayerClass(177, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    CreateTextDraws();
    CreateMenus();
    EnableStuntBonusForAll(false);
    SetNameTagDrawDistance(30.0);

    return 1;
}
pawn Код:
stock connectToMysql() {
    mysql_connect("localhost","root","samp","");
    if(mysql_ping() == -1) {
    print("Unable to connect to MySQL server... Quitting"); SendRconCommand("exit");
    }
    else {
    print("Connected to MySQL server");
    }
}
Reply
#2

Still need help
Reply
#3

Try putting the stock above that part of code.
Reply
#4

Yeah.. This removed that error.. I wonder how it works in other script the other way.. =/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)