[Ajuda] Warnings Simples!
#1

Quote:

C:\Documents and Settings\Lanterna Negra\Desktop\0\filterscripts\sss.pwn(43) : warning 217: loose indentation
C:\Documents and Settings\Lanterna Negra\Desktop\0\filterscripts\sss.pwn(56) : warning 217: loose indentation
C:\Documents and Settings\Lanterna Negra\Desktop\0\filterscripts\sss.pwn(92) : warning 217: loose indentation
C:\Documents and Settings\Lanterna Negra\Desktop\0\filterscripts\sss.pwn(97) : warning 217: loose indentation
C:\Documents and Settings\Lanterna Negra\Desktop\0\filterscripts\sss.pwn(9 : warning 217: loose indentation
C:\Documents and Settings\Lanterna Negra\Desktop\0\filterscripts\sss.pwn(103) : warning 217: loose indentation
C:\Documents and Settings\Lanterna Negra\Desktop\0\filterscripts\sss.pwn(104) : warning 217: loose indentation
C:\Documents and Settings\Lanterna Negra\Desktop\0\filterscripts\sss.pwn(109) : warning 217: loose indentation
C:\Documents and Settings\Lanterna Negra\Desktop\0\filterscripts\sss.pwn(110) : warning 217: loose indentation
C:\Documents and Settings\Lanterna Negra\Desktop\0\filterscripts\sss.pwn(115) : warning 217: loose indentation
C:\Documents and Settings\Lanterna Negra\Desktop\0\filterscripts\sss.pwn(142) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


11 Warnings.

Os Errinhos ^^ E o Filtersript Do Erro Inteiro ...

PHP код:
#include <a_samp>
#define FILTERSCRIPT
new carroagora;
strtok(const string[], &index)
{
        new 
length strlen(string);
        while ((
index length) && (string[index] <= ' '))
        {
                
index++;
        }
        new 
offset index;
        new 
result[20];
        while ((
index length) && (string[index] > ' ') && ((index offset) < (sizeof(result) - 1)))
        {
                
result[index offset] = string[index];
                
index++;
        }
        
result[index offset] = EOS;
        return 
result;
}
public 
OnFilterScriptInit()
{
        print(
"\n----------------------------------");
        print(
" Vehicle Creator by Wesley");
        print(
"-----------------------------------\n");
        return 
1;
}
public 
OnPlayerRequestClass(playeridclassid)
{
        return 
1;
}
public 
OnPlayerConnect(playerid)
{
    
SendClientMessage(playerid0xFF0000AA"Vehicle Creator by KevinsL Loaded!");
        return 
1;
}
public 
OnPlayerDisconnect(playeridreason)
{
        return 
1;
}
public 
OnPlayerSpawn(playerid)
{
        return 
1;
}
public 
OnPlayerDeath(playeridkilleridreason)
{
        return 
1;
}
public 
OnVehicleSpawn(vehicleid)
{
        return 
1;
}
public 
OnVehicleDeath(vehicleidkillerid)
{
        return 
1;
}
public 
OnPlayerText(playeridtext[])
{
        return 
1;
}
public 
OnPlayerCommandText(playeridcmdtext[])
{
    new 
cmd[128], idxtmp[256];
        
cmd strtok(cmdtextidx);
        if(
strcmp(cmd"/criarveiculo"true)==|| strcmp(cmd"/cv"true)==|| strcmp(cmd"/criarv"true)==0)
        {
                new 
modelocor1cor2;
        
tmp strtok(cmdtextidx);
                if(!
strlen(tmp)){
                        
SendClientMessage(playerid0xFF0000AA"[ERRO]: /criarveiculo [modelo] [cor 1] [cor 2]");
                        return 
1;
                }
                
modelo strval(tmp);
        
tmp strtok(cmdtextidx);
                if(!
strlen(tmp)) {
                        
SendClientMessage(playerid0xFF0000AA"[ERRO]: /criarveiculo [modelo] [cor 1] [cor 2]");
                        return 
1;
                }
                
cor1 strval(tmp);
        
tmp strtok(cmdtextidx);
                if(!
strlen(tmp)) {
                        
SendClientMessage(playerid0xFF0000AA"[ERRO]: /criarveiculo [modelo] [cor 1] [cor 2]");
                        return 
1;
                }
                
cor2 strval(tmp);
        if(
modelo >= 400 && modelo <= 611)
                {
                        new 
stringsalvo[256];
                        new 
Float:XFloat:YFloat:ZFloat:Rotation;
                        
GetPlayerPos(playeridXYZ);
                        if(
IsPlayerInAnyVehicle(playerid))
                        {
                                
carroagora GetPlayerVehicleID(playerid);
                                
GetVehicleZAngle(carroagoraRotation);
                        }
                        else
                        {
                            
GetPlayerFacingAngle(playeridRotation);
                        }
                        new 
File:pos=fopen("carros.txt"io_append);
                        
format(stringsalvo256"AddStaticVehicleEx(%d,%f,%f,%f,%f,%d,%d,600000); \n"modeloXYZ,Rotation,cor1,cor2);
                        
fwrite(posstringsalvo);
                        print(
stringsalvo);
                        
SendClientMessage(playerid0xFF0000AAstringsalvo);
                        
fclose(pos);
                }
                else
                {
                        
SendClientMessage(playerid0xFF0000AA"[ERRO]: Somente veiculos de 400 a 611!");
                }
                return 
1;
        }
        if(
strcmp(cmdtext"/ajudavc"true)==0)
        {
                
SendClientMessage(playerid0xFFFFFFAA"Use: /criarveiculo [modelo] [cor 1] [cor 2]  e crie um veiculo onde vocк estб! o arquivo serб salvo na pasta: scriptfiles");
                return 
1;
        }
        return 
0;

Reply
#2

isso e falta de identacao

usa este site para o identar

http://tabulador.medianewsonline.com/

e problema resolvido.
Reply
#3

https://sampforum.blast.hk/showthread.php?tid=170773
Reply
#4

Nao deu nada apenas deeu Foi finalizado !!
Reply
#5

... Se sгo simples por que nгo os resolve ?
Leia o topico que o zSuYaNw ou use esta ferramenta:
Clique Aqui
Reply
#6

Porque eu nao sei e simples pra vcs q sabem ignorante '-'
Quote:

... Se sгo simples por que nгo os resolve ?
Leia o topico que o zSuYaNw ou use esta ferramenta:
ipsbr.net/portal/tabulador/
__________________

Reply
#7

Quote:
Originally Posted by Extremmo
Посмотреть сообщение
Nao deu nada apenas deeu Foi finalizado !!

Apуs aparecer esta mensagem vocк copia todo o cуdigo que esta na caixa de texto e cola em seu FS/GM e depois disso compile.
Reply
#8

Quote:
Originally Posted by Extremmo
Посмотреть сообщение
Porque eu nao sei e simples pra vcs q sabem ignorante '-'
Entгo nгo diga que й simples, crie topicos como: [Ajuda] Problemas com Warning
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)