Ayuda con este Public - 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 este Public (
/showthread.php?tid=303692)
Ayuda con este Public -
Fede.Zink - 14.12.2011
Hola foro samp bueno la cuestion es que queria en mi filterscript que cuando estes en sierto lado Te envie un mensaje
con:
pawn Код:
GameTextForPlayer(i, "~r~CUalqier Cosa..", 3000, 3);
Bueno me fije en mi Gm con Base n Virtual Rol bueno ahi estaban todos los GameTextForPlayer en este public
pawn Код:
forward CustomPickups();
public CustomPickups()
Bueno lo que ise fue agregar este public a mi FS de esta manera:
pawn Код:
public CustomPickups()
{
new Float:oldposx, Float:oldposy, Float:oldposz;// esta es la Linea 192
new string[128];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (PlayerToPoint(2.0, i,312.0809,-166.1411,999.6010))
{
GameTextForPlayer(i, "Cualquier cosa..", 3000, 3);
}
return 1;
}
//esta seria la linea 203 No ai nada en este linea
Y me tira el sig error
Quote:
C:\Documents and Settings\FEDE\Menъ Inicio\Escritorio\todo san andrea\[0.3c]Los Santos RP - Modificado 4.9(1)\[0.3c]Los Santos RP - Modificado 4.9\filterscripts\Penademuerte.pwn(203) : error 030: compound statement not closed at the end of file (started at line 192)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
|
Tengo que usar ese public si o si o existe otro?
Que ise mal?
Espero que me ayuden desde ya grasias
Re: Ayuda con este Public -
Daniel-92 - 14.12.2011
Te faltу cerrar una llave al final
pawn Код:
public CustomPickups()
{
new Float:oldposx, Float:oldposy, Float:oldposz;// esta es la Linea 192
new string[128];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (PlayerToPoint(2.0, i,312.0809,-166.1411,999.6010))
{
GameTextForPlayer(i, "Cualquier cosa..", 3000, 3);
}
//return 1; esto no va
}
}
Respuesta: Ayuda con este Public -
Fede.Zink - 14.12.2011
Muchas GRasias amigo +1 de rep