SA-MP Forums Archive
Ayuda con error 017: undefined symbol "playerid" - 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 error 017: undefined symbol "playerid" (/showthread.php?tid=481053)



Ayuda con error 017: undefined symbol "playerid" - kaku924 - 14.12.2013

Buenas, editando el gm un poco (soy medio novato) estaba editando el sistema de payday

Poniendo las pagas por Rango....

Uno de los ejemplos:
Код:
if(Info[i][pMember] = 6)
					{
					GivePlayerMoney(playerid,17000);
					SendClientMessageEx(i, COLOR_GRAD2, "Paga por servicios al Estado: $17.000");
					}
Ahi por los pocos conocimientos que tengo, Si el usuario tiene pMember en 6, recibira $17000 y un mensaje diciendo "pago por servicios al estado $17.000"

hasta ahi todo bien, hize 7 de esas, (1 para cada rango)
Cuando le doy a scriptear,, me sale
error 017: undefined symbol "playerid"

en estas lineaS:
if(Info[i][pMember] = 6)
{
---->GivePlayerMoney(playerid,17000);
SendClientMessageEx(i, COLOR_GRAD2, "Paga por servicios al Estado: $17.000");
}
en esa linea que resaltй.

Alguienї? Gracias!.


Respuesta: Ayuda con error 017: undefined symbol "playerid" - Jejox - 14.12.2013

Intenta poniendo

pawn Код:
new playerid;



Respuesta: Ayuda con error 017: undefined symbol "playerid" - CrossOv3r - 14.12.2013

usa GivePlayerMoney(i, 17000);


Respuesta: Ayuda con error 017: undefined symbol "playerid" - Hypno - 14.12.2013

Al parecer usas un loop mas arriba en el cual usas la variable " i "


Respuesta: Ayuda con error 017: undefined symbol "playerid" - kaku924 - 14.12.2013

Creo que lo puse donde no era.
:
Код:
(47566) : warning 219: local variable "playerid" shadows a variable at a preceding level
(47582) : warning 219: local variable "playerid" shadows a variable at a preceding level
(47709) : warning 219: local variable "playerid" shadows a variable at a preceding level
(47951) : warning 219: local variable "playerid" shadows a variable at a preceding level
(47958) : warning 219: local variable "playerid" shadows a variable at a preceding level
(47972) : warning 219: local variable "playerid" shadows a variable at a preceding level
(47986) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48073) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48079) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48184) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48192) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48250) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48295) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48330) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48344) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48394) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48682) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48708) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48722) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48812) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48846) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48881) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48907) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48934) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48984) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49025) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49045) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49068) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49075) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49088) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49127) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49140) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49154) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49187) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49220) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49243) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49260) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49277) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49294) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49301) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49308) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49318) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49521) : warning 211: possibly unintended assignment
(49525) : warning 211: possibly unintended assignment
(49529) : warning 211: possibly unintended assignment
(49533) : warning 211: possibly unintended assignment
(49537) : warning 211: possibly unintended assignment
(49541) : warning 211: possibly unintended assignment
(49541) : error 029: invalid expression, assumed zero
(49545) : warning 211: possibly unintended assignment
(50131) : warning 203: symbol is never used: "IsAForbidden"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
De esos salen de la linea 43854 a la 50131...


Respuesta: Ayuda con error 017: undefined symbol "playerid" - kaku924 - 14.12.2013

Probarй con el i. Y les cuento, gracias!


Respuesta: Ayuda con error 017: undefined symbol "playerid" - Jejox - 14.12.2013

Quote:
Originally Posted by kaku924
Посмотреть сообщение
Creo que lo puse donde no era.
:
Код:
(47566) : warning 219: local variable "playerid" shadows a variable at a preceding level
(47582) : warning 219: local variable "playerid" shadows a variable at a preceding level
(47709) : warning 219: local variable "playerid" shadows a variable at a preceding level
(47951) : warning 219: local variable "playerid" shadows a variable at a preceding level
(47958) : warning 219: local variable "playerid" shadows a variable at a preceding level
(47972) : warning 219: local variable "playerid" shadows a variable at a preceding level
(47986) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48073) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48079) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48184) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48192) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48250) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48295) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48330) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48344) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48394) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48682) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48708) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48722) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48812) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48846) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48881) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48907) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48934) : warning 219: local variable "playerid" shadows a variable at a preceding level
(48984) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49025) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49045) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49068) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49075) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49088) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49127) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49140) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49154) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49187) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49220) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49243) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49260) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49277) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49294) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49301) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49308) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49318) : warning 219: local variable "playerid" shadows a variable at a preceding level
(49521) : warning 211: possibly unintended assignment
(49525) : warning 211: possibly unintended assignment
(49529) : warning 211: possibly unintended assignment
(49533) : warning 211: possibly unintended assignment
(49537) : warning 211: possibly unintended assignment
(49541) : warning 211: possibly unintended assignment
(49541) : error 029: invalid expression, assumed zero
(49545) : warning 211: possibly unintended assignment
(50131) : warning 203: symbol is never used: "IsAForbidden"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
De esos salen de la linea 43854 a la 50131...
Hace como te dije

pawn Код:
new playerid;
O sino agrйgaselo a otro new que ya este
pawn Код:
new tmpintrate, interest, paytotal, playerid;



Respuesta: Ayuda con error 017: undefined symbol "playerid" - kaku924 - 14.12.2013

Код:
(44939) : warning 202: number of arguments does not match definition
(49521) : warning 211: possibly unintended assignment
(49525) : warning 211: possibly unintended assignment
(49529) : warning 211: possibly unintended assignment
(49533) : warning 211: possibly unintended assignment
(49537) : warning 211: possibly unintended assignment
(49541) : warning 211: possibly unintended assignment
(49541) : error 029: invalid expression, assumed zero
(49545) : warning 211: possibly unintended assignment
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Y no me crea el archivo..



Ahora estoy probando agregar en el NEW lo que me dijo, y les cuento! :S


Respuesta: Ayuda con error 017: undefined symbol "playerid" - Swedky - 14.12.2013

Quote:
Originally Posted by Jejox
Посмотреть сообщение
Intenta poniendo

pawn Код:
new playerid;
Bueno, al crear eso, no bбsicamente tendrбs el tнpico parбmetro 'playerid', que lo que hace es devolver la ID del jugador.

En tu caso, al usar esa variable, si la usamos con 'format', siempre darнa el valor de '0', aunque seas el ID 45
(por ejemplo), ya que al crearlas, serнa algo asн:

pawn Код:
new playerid = 0; // Como ya dije, tendrб el valor '0'.

En resumen, esa variable no devuelve la ID del Jugador y teуricamente no funcionarнa para completar la duda del autor del post.


Respuesta: Ayuda con error 017: undefined symbol "playerid" - kaku924 - 14.12.2013

Siguen saliendo los mismos errores/warns.
(44939) : warning 202: number of arguments does not match definition
(49521) : warning 211: possibly unintended assignment
(49525) : warning 211: possibly unintended assignment
(49529) : warning 211: possibly unintended assignment
(49533) : warning 211: possibly unintended assignment
(49537) : warning 211: possibly unintended assignment
(49541) : warning 211: possibly unintended assignment
(49541) : error 029: invalid expression, assumed zero
(49545) : warning 211: possibly unintended assignment
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase