[!] Error al compilar
#1

Bueno, pues chicos, tengo un problema al intentar compilar un GM, el cual el error estб vinculado a una cosa llamada "strtok", les dejo las lнneas haber si me podeis ayudar, gracias!

Код:
C:\Documents and Settings\Sergio\Escritorio\Mas cosas\SAMP\Servidor TDRP\gamemodes\tdrp013.pwn(12836) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Sergio\Escritorio\Mas cosas\SAMP\Servidor TDRP\gamemodes\tdrp013.pwn(16501) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Sergio\Escritorio\Mas cosas\SAMP\Servidor TDRP\gamemodes\tdrp013.pwn(16649) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Sergio\Escritorio\Mas cosas\SAMP\Servidor TDRP\gamemodes\tdrp013.pwn(17042) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Sergio\Escritorio\Mas cosas\SAMP\Servidor TDRP\gamemodes\tdrp013.pwn(17349) : warning 215: expression has no effect
C:\Documents and Settings\Sergio\Escritorio\Mas cosas\SAMP\Servidor TDRP\gamemodes\tdrp013.pwn(17790) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Sergio\Escritorio\Mas cosas\SAMP\Servidor TDRP\gamemodes\tdrp013.pwn(22319) : error 025: function heading differs from prototype
C:\Documents and Settings\Sergio\Escritorio\Mas cosas\SAMP\Servidor TDRP\gamemodes\tdrp013.pwn(22320) : error 021: symbol already defined: "strtok"
C:\Documents and Settings\Sergio\Escritorio\Mas cosas\SAMP\Servidor TDRP\gamemodes\tdrp013.pwn(22330) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Sergio\Escritorio\Mas cosas\SAMP\Servidor TDRP\gamemodes\tdrp013.pwn(22421) : error 021: symbol already defined: "HexToInt"
Код:
Lнnea 12836: 		x_info = strtok(cmdtext, idx);
Lнnea 16501:							x_info = strtok(cmdtext, idx);
Lнnea 16649:							x_info = strtok(cmdtext, idx);
Lнnea 17042:							x_info = strtok(cmdtext, idx);
Lнnea 17349:								format(string, sizeof(string), "[ANUNCIO] %s - Tlf: %d", result), PlayerInfo[playerid][pPhoneNumber];
Lнnea 17790:		x_info = strtok(cmdtext, idx);
Lнnea 22319:strtok(string[],&idx,seperator = ' ')
Lнnea 22320:{
Lнnea 22330:	return ret;
Lнnea 22421:stock HexToInt(string[]) {
Gracias denuevo!
Reply
#2

Si no me equivoco , el tamaсo de x_info debe ser 256 , a menos que modifiques strtok
Lo demбs es que ya estб definida la funciуn HexToInt y strtok en algun lado
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)