Pedido un error en pawno - 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: Pedido un error en pawno (
/showthread.php?tid=550660)
Pedido un error en pawno -
Lanzik - 14.12.2014
Resumen del pedido: - [Pedido]Un error en un comando de LSPD
Explicaciуn detallada del pedido: - Hola, cambie y edite el comando de megбfono para LSPD y me sale un error estuve mirando y cambiando pero no puedo quitar el error me ayudan porfavor
GM Base (opcional): -Gamemode de Zona Sur
Notas (opcional): -+1 y uso el zcmd
el comando:
PHP код:
CMD:m(playerid, params[]){ //Megбfono
new string[128], nombre[25], texto[128];
if(!IsPlayerInAnyVehicle(playerid))return Mensaje(playerid, COLOR_BLANCO, "No puedes utilizar este comando.");
if(sscanf(params, "s[128]", texto))return SendClientMessage(playerid,LSPDYLSMD, "* Oficial utiliza {009EFF}/m{FFFFFF}egбfono [Texto]");
if(PI[playerid][Faccion] == 1) return SendClientMessage(playerid,COL_WHITE,"* No formas parte de Departamento de policia de Los Santos");
GetPlayerName(playerid, nombre, sizeof(nombre));
format(string, sizeof(string), "{2D9FE7}[Megбfono] {FFFFFF} %s {2D9FE7}ЎЎ {FFFFFF}%s {2D9FE7}!!",nombre, texto);
ProxDetector(60.0, playerid, string,AzuLSPD,AzuLSPD,AzuLSPD,AzuLSPD,AzuLSPD);
return true;
}
[COLOR="rgb(255, 0, 255)"]los errores:[/COLOR]
PHP код:
C:\Users\Usuario\Desktop\NewParadise\gamemodes\NPRP.pwn(11399) : error 035: argument type mismatch (argument 2)
C:\Users\Usuario\Desktop\NewParadise\gamemodes\NPRP.pwn(11400) : error 017: undefined symbol "Nombre"
C:\Users\Usuario\Desktop\NewParadise\gamemodes\NPRP.pwn(11400) : error 017: undefined symbol "Nombre"
C:\Users\Usuario\Desktop\NewParadise\gamemodes\NPRP.pwn(11400) : error 029: invalid expression, assumed zero
C:\Users\Usuario\Desktop\NewParadise\gamemodes\NPRP.pwn(11400) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Error
[COLOR="rgb(255, 0, 255)"]linea 11399[/COLOR]
PHP код:
if(PI[playerid][Faccion] == 1) return SendClientMessage(playerid,COL_WHITE,"* No formas parte de Departamento de policia de Los Santos");
linea 113400
PHP код:
GetPlayerName(playerid, Nombre, sizeof(Nombre));
Respuesta: Pedido un error en pawno -
bm0z - 14.12.2014
La ' N ' estб en mayъsculas cuando en el resto del comando estб en minъsculas.