06.11.2014, 16:22
Problema resolvido entгo, tomara que nгo tenha bugs, vou lhe mostrar uma parte como ficou, tudo feito por mim.
e possui um erro, nгo consigo resolver, tento atualizar a include mais nгo encontro a atualizada.
erro:
Код:
public OnGameModeInit(){ mysql_debug(1); //new mysql = mysql_connect("localhost", "root", "samp", ""); mysql_connect("localhost", "debian-sys-maint", "samp", "123123"); return 1; }
Код:
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; }
Код:
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.