SA-MP Forums Archive
Ayuda con un Error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Ayuda con un Error (/showthread.php?tid=296326)



Ayuda con un Error - Sabe:$ - 11.11.2011

Bueno Amigo , me sale un error en esta linea

Quote:

Linea:44921 new string[32];

Quote:

LINEA 44924: if (PlayerInfo[i][pLeader] == teamnumber) format(string, sizeof(string), "%s (LНDER)",PlayerName(i));

Quote:

D:\GM\gamemodes\rp.pwn(44921) : warning 219: local variable "string" shadows a variable at a preceding level
D:\GM\gamemodes\rp.pwn(44924) : error 012: invalid function call, not a valid address
D:\GM\gamemodes\rp.pwn(44924) : warning 215: expression has no effect
D:\GM\gamemodes\rp.pwn(44924) : error 001: expected token: ";", but found ")"
D:\GM\gamemodes\rp.pwn(44924) : error 029: invalid expression, assumed zero
D:\GM\gamemodes\rp.pwn(44924) : fatal error 107: too many error messages on one line




Respuesta: Ayuda con un Error - Jovanny - 11.11.2011

Error en la linea 44921, dice que ya hay una variable llamada string creada

44923 - No se encontro ;


Respuesta: Ayuda con un Error - Sabe:$ - 11.11.2011

ahh, y como arreglo eso ?


Re: Ayuda con un Error - Miguel - 11.11.2011

Borra la linea 44921, la otra no se si es que PlayerName es una funciуn o una tabla. Intenta cambiando PlayerName(i) por PlayerName[i], si da error reviertes el cambio.


Respuesta: Ayuda con un Error - davidxxx - 11.11.2011

pawn Код:
Linea:44921 new string[32]; // elimina esto

LINEA 44924: if (PlayerInfo[i][pLeader] == teamnumber) format(string, sizeof(string), "%s (LНDER)",PlayerName(i)); // cambia PlayerName(i) por PlayerName[i]
Eso es todo si te da error nos avisas

Edit: Ya me Gano Miguel


Respuesta: Ayuda con un Error - Sabe:$ - 11.11.2011

MUCHAS GRACIAS A TODOS...
+10 GRANDE QUE SON DAVID Y MGUEL


Respuesta: Ayuda con un Error - davidxxx - 11.11.2011

Para Eso Estamos