SA-MP Forums Archive
Porque El Warning En Este Comando - 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: Porque El Warning En Este Comando (/showthread.php?tid=636398)



Porque El Warning En Este Comando - Gamerd - 26.06.2017

Porque Este Comando Me Da Warning Justo En esta Parte for (new i; i < 2000; i++)
Quote:

COMMAND:repairall(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < MAX_NIVEL_ADMIN && PlayerInfo[playerid][pVIP] < MAX_NIVEL_VIP )
return SendClientMessage(playerid, COLOR_ROJO, "ERROR:No Tienes Permiso Para Usar Este Comando");
// Loop through all vehicles
for (new i; i < 2000; i++)
RepairVehicle(i); // Fully repair the vehicle (damage value and bodywork)

// Send all players a message to inform them that all vehicles have been repaired
SendClientMessageToAll(0x00FF00FF, "Todos los vehiculos fueron reparados por un admin");

return true;
}




Re: Porque El Warning En Este Comando - Toroi - 26.06.2017

їQue aviso te da? Usarнa mis poderes h4x para entrar en tu PC y averiguarlo yo mismo, pero es mas fбcil si das la informaciуn completa.


Respuesta: Porque El Warning En Este Comando - Ertouq - 26.06.2017

їQuй te dice el warning?


Re: Porque El Warning En Este Comando - Gamerd - 26.06.2017

Mira
Quote:

C:\Users\User Principal 2\Documents\DeTodoUnPoco\filterscripts\adminV1.pwn (24 : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.




Respuesta: Porque El Warning En Este Comando - FixFl0w - 26.06.2017

Ese warning solo sale cuando esta mal ordenada la linea.


Respuesta: Porque El Warning En Este Comando - AndrewRussett - 26.06.2017

Pega tu comando y funciones que te tiren ese warning aqui; http://tabulador.medianewsonline.com/ la pбgina de lo ordena.


Re: Porque El Warning En Este Comando - GuilhermeNunes - 26.06.2017

Hola amigo, pruebe este codigo aquн si me da error avise en el PM

PHP код:
COMMAND:repairall(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdmin] < MAX_NIVEL_ADMIN && PlayerInfo[playerid][pVIP] < MAX_NIVEL_VIP )
    return 
SendClientMessage(playeridCOLOR_ROJO"ERROR:No Tienes Permiso Para Usar Este Comando");
    
// Loop through all vehicles
    
for (new i2000i++)
    
RepairVehicle(i); // Fully repair the vehicle (damage value and bodywork)
    // Send all players a message to inform them that all vehicles have been repaired
    
SendClientMessageToAll(0x00FF00FF"Todos los vehiculos fueron reparados por un admin");
    return 
true;




Re: Porque El Warning En Este Comando - Gamerd - 27.06.2017

Quote:
Originally Posted by GuilhermeNunes
Посмотреть сообщение
Hola amigo, pruebe este codigo aquн si me da error avise en el PM

PHP код:
COMMAND:repairall(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdmin] < MAX_NIVEL_ADMIN && PlayerInfo[playerid][pVIP] < MAX_NIVEL_VIP )
    return 
SendClientMessage(playeridCOLOR_ROJO"ERROR:No Tienes Permiso Para Usar Este Comando");
    
// Loop through all vehicles
    
for (new i2000i++)
    
RepairVehicle(i); // Fully repair the vehicle (damage value and bodywork)
    // Send all players a message to inform them that all vehicles have been repaired
    
SendClientMessageToAll(0x00FF00FF"Todos los vehiculos fueron reparados por un admin");
    return 
true;

Ese Me Funciono Correcta Mente Gracia Por Ordenarlo


Re: Porque El Warning En Este Comando - GuilhermeNunes - 27.06.2017

...


Re: Porque El Warning En Este Comando - EdgarHN - 27.06.2017

Simplemente debes ordenarlo