Un error de l/b - 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: Un error de l/b (
/showthread.php?tid=624709)
Un error de l/b -
GOM3Z - 21.12.2016
Resumen del pedido: -
Un problema de un error -hi -hi
Explicaciуn detallada del pedido: -
Me sale un error y no se solucionarlo
GM Base (opcional): -
De 0% Creada por mi
Notas (opcional): -
Intentar solucionarlo o cambiarlo por otro
El comando
PHP код:
CMD:b(playerid, params[])
{
new string[64], name[24];
GetPlayerName(playerid, name, 24);
format(string, 64, "[OOC] %s: %s", name, params);
SendRangedMessage(playerid, COLOR_OOC, string, 50);
SendClientMessage(playerid, -1, "Uso {#0040FF}/b [Texto]{FFFFFF}, por ejemplo {#0040FF}/b{FFFFFF} xD");
return 1;
}
Y el error
PHP код:
F:\New Gothan Servidor\New Gothan Sv\gamemodes\NGrol.pwn(346) : error 017: undefined symbol "SendRangedMessage"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
ґLA Linea del error
PHP код:
SendRangedMessage(playerid, COLOR_OOC, string, 50);
Re: Un error de l/b -
Eloy - 21.12.2016
no has definido la funcion SetRangedMessage
te recomiendo usar el proxdetector para realizar la misma funcion y el uso de Sscanf
Edit:
En este post te pasaron el stock del proxdetector
https://sampforum.blast.hk/showthread.php?tid=624686
Respuesta: Un error de l/b -
GOM3Z - 21.12.2016
Buenas lo hize y me quito el error ahora me tira un warning
Quote:
F:\New Gothan Servidor\New Gothan Sv\gamemodes\NGrol.pwn(350) : warning 215: expression has no effect
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
|
La linea del warning
Quote:
SendRangedMessage(playerid, COLOR_OOC, string, 50);
|
Todo el cmd
Quote:
CMD:b(playerid, params[])
{
new string[64], name[24];
GetPlayerName(playerid, name, 24);
format(string, 64, "[OOC] %s: %s", name, params);
SendRangedMessage(playerid, COLOR_OOC, string, 50);
SendClientMessage(playerid, -1, "Uso {#0040FF}/b [Texto]{FFFFFF}, por ejemplo {#0040FF}/b{FFFFFF} xD");
return 1;
}
|
Re: Un error de l/b -
Choidito - 21.12.2016
Estб mal declarado esa funciуn, o agregaste algo de mбs en la funciуn cosa que no harб ninguna funciуn, te recomiendo que uses ProxDetector.