[AYUDA] Errores que no entiendo
#1

Bueno yo estaba intentando hacer el sv en mysql, ya lo habia conectado y estaba declarando todas las funciones y cuando de repente compilo y me choco con estos errores SIN sentido... capas ust me pueden ayudar.

[CODE]
(2) : error 010: invalid function or declaration
(3 : error 001: expected token: ")", but found ";"
(3 : error 010: invalid function or declaration
(60) : error 075: input line too long (after substitutions)
(61) : error 010: invalid function or declaration
[CODE]

Linea 2:

Creditos entremedio de /* y */ (no tendrian que ser tomados por el compilador)

Linea 38:

pawn Код:
new ArmasGet;
Linea 60:

pawn Код:
#include <file>
Linea 61:

pawn Код:
#include <utils>
Reply
#2

Es probable que te falte un ; mas arriba en el script, y que te esta produciendo esos errores al compilar.

Saludos!
Reply
#3

Primero van los Includos y luego

new ArmasGet;.

aregla eso creo que es eso la problema. Saludos.
Reply
#4

Ya puse todos los news debajo de los includes y no funciono y tambien revise por errores en las primeras lineas y no los vi (Igual no creo que sea eso porq los errores me los tira desde la linea 2) Alguna otra sugerencia?
Reply
#5

Creo que el Error esta en el INC fijate Bien
Reply
#6

їCuбl es el directorio donde estб el error?

Код:
(2) : error 010: invalid function or declaration
(3 : error 001: expected token: ")", but found ";"
(3 : error 010: invalid function or declaration
(60) : error 075: input line too long (after substitutions)
(61) : error 010: invalid function or declaration
Con ellos vamos a saber si el error estб en la 'include'
Reply
#7

XD si creo que es del include
pawn Код:
C:\Users\franco\Desktop\sv haciendo mysql\pawno\include\a_mysql.inc(38) : error 001: expected token: ")", but found ";"

Bueh este es todo el fs...
pawn Код:
<!-- saved from url=(0049)[url]http://files.g-stylezzz.com/mysql/rel/a_mysql.inc[/url] -->//linea 2
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><script id="__isTpiViewExists"></script><link rel="stylesheet" type="text/css" href="chrome-extension://bejbohlohkkgompgecdcbbglkpjfjgdj/css/about.css"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/*
    SA-MP MySQL plugin R5
    Copyright © 2008-2010, G-sTyLeZzZ
*/


#if defined mysql_included
    #endinput
#endif
#define mysql_included

//Common error codes (http://dev.mysql.com/doc/refman/5.0/en/e...rver).html)

#define ER_DBACCESS_DENIED_ERROR 1044
#define ER_ACCESS_DENIED_ERROR 1045
#define ER_UNKNOWN_TABLE 1109
#define ER_SYNTAX_ERROR 1149
#define CR_SERVER_GONE_ERROR 2006
#define CR_SERVER_LOST 2013
#define CR_COMMAND_OUT_OF_SYNC 2014
#define CR_SERVER_LOST_EXTENDED 2055

//Native functions

#define mysql_fetch_row(%1) mysql_fetch_row_format(%1,"|")
#define mysql_next_row() mysql_retrieve_row()
#define mysql_get_field(%1,%2) mysql_fetch_field_row(%2,%1)

native mysql_affected_rows(connectionHandle = 1);
native mysql_close(connectionHandle = 1);
native mysql_connect(const host[],const user[],const database[],const password[]);
native mysql_debug(enable = 1);
native mysql_errno(connectionHandle = 1);
native mysql_fetch_int(connectionHandle = 1);
native mysql_fetch_field(number,dest[],connectionHandle = 1);
native mysql_fetch_field_row(string[],const fieldname[],connectionHandle = 1);
native mysql_fetch_float(&amp;Float:result,connectionHandle = 1);//linea 38
native mysql_fetch_row_format(string[],const delimiter[] = "|",connectionHandle = 1);
native mysql_field_count(connectionHandle = 1);
native mysql_free_result(connectionHandle = 1);
native mysql_get_charset(destination[],connectionHandle = 1);
native mysql_insert_id(connectionHandle = 1);
native mysql_num_rows(connectionHandle = 1);
native mysql_num_fields(connectionHandle = 1);
native mysql_ping(connectionHandle = 1);
native mysql_query(query[],resultid = (-1),extraid = (-1),connectionHandle = 1);
native mysql_query_callback(index,query[],callback[],extraid = (-1),connectionHandle = 1);
native mysql_real_escape_string(const source[],destination[],connectionHandle = 1);
native mysql_reconnect(connectionHandle = 1);
native mysql_reload(connectionHandle = 1);
native mysql_retrieve_row(connectionHandle = 1);
native mysql_set_charset(charset[],connectionHandle = 1);
native mysql_stat(const destination[],connectionHandle = 1);
native mysql_store_result(connectionHandle = 1);
native mysql_warning_count(connectionHandle = 1);

//forward declarations

forward OnQueryFinish(query[], resultid, extraid, connectionHandle);//linea 60
forward OnQueryError(errorid, error[], resultid, extraid, callback[], query[], connectionHandle);</pre><div id="mainContainer_CTID"><div class="fixedDiv SkipThisFixedPosition UrlGadgetsDiv" style="position: fixed; left: 0px; z-index: 2147483640; top: 34px !important; "></div><div class="fixedDiv SkipThisFixedPosition GeneralGadgetsDiv" style="position: fixed; left: 0px; z-index: 2147483640; width: 100%; top: 34px !important; "></div></div><div class="SkipThisFixedPosition top-iframe-wrapper" style="width: 100%; height: 34px; position: fixed; z-index: 2147483647; left: 0px; top: 0px !important; "><iframe style="width: 100%; height: 34px; top: 0px; left: 0px; " src="./a_mysql_files/container.htm" scrolling="no" class="toolbarContainer" frameborder="0px" id="CWTBiframe0"></iframe></div></body><style type="text/css" id="CWToolbarStyle">html { padding-top: 34px !important;}</style></html>//linea 61
Estos son los errores...
Код:
C:\Users\franco\Desktop\sv haciendo mysql\include\a_mysql.inc(2) : error 010: invalid function or declaration
C:\Users\franco\Desktop\sv haciendo mysql\include\a_mysql.inc(38) : error 001: expected token: ")", but found ";"
C:\Users\franco\Desktop\sv haciendo mysql\include\a_mysql.inc(38) : error 010: invalid function or declaration
C:\Users\franco\Desktop\sv haciendo mysql\include\a_mysql.inc(60) : error 075: input line too long (after substitutions)
C:\Users\franco\Desktop\sv haciendo mysql\include\a_mysql.inc(61) : error 010: invalid function or declaration
C:\Users\franco\Desktop\sv haciendo mysql\include\a_mysql.inc(63) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
No los entiendo =S
Reply
#8

Utiliza y/o actualiza este include:
http://files.g-stylezzz.com/mysql/rel/a_mysql.inc

O borra esto:
pawn Код:
<!-- saved from url=(0049)[url]http://files.g-stylezzz.com/mysql/rel/a_mysql.inc[/url] -->//linea 2
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><script id="__isTpiViewExists"></script><link rel="stylesheet" type="text/css" href="chrome-extension://bejbohlohkkgompgecdcbbglkpjfjgdj/css/about.css"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
Reply
#9

Bueno con ese link que me mandaste se van todos los errores ecepto 1.
Код:
C:\Users\franco\Desktop\sv haciendo mysql\include\a_mysql.inc(60) : error 013: no entry point (no public functions)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)