[Ajuda] Alguem me ajuda com esses erros? pf
#1

Oi gente, tava tentano compila aqui, pesquiser no forum, ja li a apostila do pawno, mais ñ consegui descrubiri pq da esses erros.. alguem pode me ajudar?

ERROS:

PHP код:
C:\Users\Jonathan\Desktop\New Virtual Life\pawno\include\antibot.inc(84) : warning 219local variable "pName" shadows a variable at a preceding level
C
:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPGt.pwn(7071) : warning 219local variable "pName" shadows a variable at a preceding level
C
:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPGt.pwn(7075) : warning 211possibly unintended assignment
C
:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPGt.pwn(10863) : warning 219local variable "ReturnUser" shadows a variable at a preceding level
C
:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPGt.pwn(10873) : warning 225unreachable code
C
:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPGt.pwn(10873) : error 012invalid function callnot a valid address
C
:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPGt.pwn(10873) : warning 215expression has no effect
C
:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPGt.pwn(10873) : error 001expected token";"but found ")"
C:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPGt.pwn(10873) : error 029invalid expressionassumed zero
C
:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPGt.pwn(10873) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

e o comando: ( SÒ OS ERROS, OS WARNINGS JA ESTAVAM )

PHP код:
if(strcmp(cmd"/cadeia",true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            new 
ReturnUser;
            new 
tmp;
            new 
giveplayerid;
            new 
tempo[20];
            new 
tempo2;
            if(
dini_Int(file"aAdmin") == || IsPlayerAdmin(playerid) || pAdmin[playerid] > 3){
            {
                
SendClientMessage(playeridVermelho"   Você não esta autorizado para usar este comando!");
                return 
true;
            }
            
giveplayerid ReturnUser(tmp);
            
tmp strtok(cmdtextidx);
            
tempo strtok(cmdtextidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridVermelho"USE: /cadeia [id] [Tempo] [Motivo]");
                return 
true;
            }
            if(!
strlen(tempo))
            {
                
SendClientMessage(playeridVermelho"USE: /cadeia [id] [Tempo] [Motivo]");
                return 
true;
            }
            
tempo2 strval(tempo);
            new 
length strlen(cmdtext);
            while ((
idx length) && (cmdtext[idx] <= ' '))
            {
            
idx++;
            }
            new 
offset idx;
            new 
result[100];
            while ((
idx length) && ((idx offset) < (sizeof(result) - 1)))
            {
            
result[idx offset] = cmdtext[idx];
            
idx++;
            }
            
result[idx offset] = EOS;
            if(
IsPlayerConnected(giveplayerid))
            {
                if(
giveplayerid != INVALID_PLAYER_ID)
                {
                    
GetPlayerName(giveplayeridgiveplayersizeof(giveplayer));
                    
GetPlayerName(playeridsendernamesizeof(sendername));
                    
format(stringsizeof(string), "[ PA ] O(A) Administrador(a) %s colocou %s na Cadeia, por %s minutos, Motivo: ( %s )",PlayerName(playerid), giveplayertempo, (result));
                    
SendClientMessageToAll(AdminCorstring);
                    
ResetPlayerWeaponsEx(giveplayerid);
                    
OnPlayerUpdate(giveplayerid);
                    
PlayerInfo[giveplayerid][Preso] = 6;
                    
PlayerInfo[giveplayerid][pJailTime] = tempo2 60;
                    
SetPlayerInterior(giveplayerid6);
                    
SetPlayerPos(giveplayerid263.8820,77.4002,1001.0391);
                 }
            }
            else
            {
                
SendClientMessage(playeridVermelho"   O jogador está offline !");
                return 
true;
            }
        }
        return 
true;
    }

Reply


Messages In This Thread
Alguem me ajuda com esses erros? pf - by Jonathan4i20 - 15.08.2013, 02:48
Re: Alguem me ajuda com esses erros? pf - by darkxdll - 15.08.2013, 02:58
Re: Alguem me ajuda com esses erros? pf - by PT - 15.08.2013, 03:00
Re: Alguem me ajuda com esses erros? pf - by Jonathan4i20 - 15.08.2013, 03:03
Re: Alguem me ajuda com esses erros? pf - by darkxdll - 15.08.2013, 03:06
Re: Alguem me ajuda com esses erros? pf - by PT - 15.08.2013, 03:07

Forum Jump:


Users browsing this thread: 1 Guest(s)