[Ajuda] Ajuda Mysql
#1

Olб feras do paranauк meu amigo me recomendou esse GM Em mysql para estudar so que veio com 3 errors alguem ai sabe resolver ?

As Linhas nao tem muita importancia .

Код:
error 017: undefined symbol "PlayerTextDrawSetPreviewModel"
 undefined symbol "PlayerTextDrawSetPreviewRot"

Esses error aqui e da include . mSelection 


 error 017: undefined symbol "mysql_query"
Aqui a include https://sampforum.blast.hk/showthread.php?tid=407045
Reply
#2

pawn Код:
error 017: undefined symbol "PlayerTextDrawSetPreviewModel"
error 017: undefined symbol "PlayerTextDrawSetPreviewRot"
Atualize as includes mSelection

pawn Код:
error 017: undefined symbol "mysql_query"
Provavelmente vocк estб usando MySQL R7 e lб й
pawn Код:
mysql_function_query
Reply
#3

VocК usou a funзгo errada , tudo que vocК fazer no protop vocК tem que utilizar !
Код:
mysql_function_query ( coneзгo , string , true/false , "i", playerid);
Reply
#4

Antes

pawn Код:
forward mysql_query_ex(String[]);
public mysql_query_ex(String[])
{
    if(ConDead == 0)
    {
        //if(mysql_ping(connection) != 0)//Kid's mysql
        if(mysql_ping() != 1)
        {
            SendRconCommand("password 666");
            SendRconCommand("hostname Mysql problems || Server locked!");
            foreach(Player, i)
            {
                Kick(i);
            }
            ConDead = 1;
        }
    }
    if(ConDead == 1)
    {
        new string[1024];
        format(string, sizeof(string), "%s\n", String);
        MysqlLog(string);
    }
    else
    {
        mysql_query(String) ; //<--------------- antes
    }
    return 1;
}
Ai depois apareceu um erro.

pawn Код:
F:\Users\weverton\Documents\GM3\gamemode\gamemode\gamemodes\LSL-RP.pwn(8796) : error 035: argument type mismatch (argument 1)
Como fico...

pawn Код:
forward mysql_query_ex(String[]);
public mysql_query_ex(String[])
{
    if(ConDead == 0)
    {
        //if(mysql_ping(connection) != 0)//Kid's mysql
        if(mysql_ping() != 1)
        {
            SendRconCommand("password 666");
            SendRconCommand("hostname Mysql problems || Server locked!");
            foreach(Player, i)
            {
                Kick(i);
            }
            ConDead = 1;
        }
    }
    if(ConDead == 1)
    {
        new string[1024];
        format(string, sizeof(string), "%s\n", String);
        MysqlLog(string);
    }
    else
    {
        mysql_function_query(String) ;
    }
    return 1;
}
Reply
#5

troca isso
Код:
mysql_function_query(String) ;
por isso!
Код:
mysql_function_query(connection, String, false, # ,# ) ;
Reply
#6

Vix : Problem dnv

pawn Код:
F:\Users\weverton\Documents\GM3\gamemode\gamemode\gamemodes\LSL-RP.pwn(8796) : error 017: undefined symbol "connection"
Reply
#7

Coloca sua variavel de conexгo ali onde estб connection
Reply
#8

Nгo tem.
Reply
#9

Meu deus,

Como vocк estб conectando o MySQL?

Exemplo:
pawn Код:
Conexao = mysql_connect ( HostName, UserName, DataName, PassName ) ;
Reply
#10

Mano eu baixei Estй GM : https://sampforum.blast.hk/showthread.php?tid=443394
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)