[Ajuda] MySQL
#5

Problema resolvido entгo, tomara que nгo tenha bugs, vou lhe mostrar uma parte como ficou, tudo feito por mim.

Код:
public OnGameModeInit(){

	mysql_debug(1);
	//new mysql = mysql_connect("localhost", "root", "samp", "");
    mysql_connect("localhost", "debian-sys-maint", "samp", "123123");
   	return 1;
}
e possui um erro, nгo consigo resolver, tento atualizar a include mais nгo encontro a atualizada.

Код:
public OnPlayerConnect(playerid)
{
   new name[MAX_PLAYER_NAME], query[1024];
   GetPlayerName(playerid, name, MAX_PLAYER_NAME);
   format(query, sizeof(query), "SELECT * FROM `contas` WHERE `usuario` = '%s'", name);
   mysql_function_query(mysql, query, true, "q_loginRequest", "d", playerid);    // Parte do erro <<
   
   return 1;
}
erro:
Код:
C:\Documents and Settings\P.Henrique\Desktop\gamemode\gamemodes\BASEBPF.pwn(99) : error 017: undefined symbol "mysql_function_query"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply


Messages In This Thread
MySQL - by SukMathcuck - 06.11.2014, 15:36
Re: MySQL - by ipsLuan - 06.11.2014, 15:41
Re: MySQL - by SukMathcuck - 06.11.2014, 15:48
Re: MySQL - by PT - 06.11.2014, 16:17
Re: MySQL - by SukMathcuck - 06.11.2014, 16:22
Re: MySQL - by PT - 06.11.2014, 16:33
Re: MySQL - by ipsLuan - 06.11.2014, 19:16

Forum Jump:


Users browsing this thread: 4 Guest(s)