[DUV] Escudo
#1

pawn Код:
if(strcmp("/escudo",cmdtext,true,7)==0)
    {
    if(gTeam[playerid] == 2 || IsACop(playerid))
    {
        if(SetPVarInt(playerid, "Escudo") == 10)
        {
            RemovePlayerAttachedObject(playerid,1);
            RemovePlayerAttachedObject(playerid,2);
            RemovePlayerAttachedObject(playerid,3);
            RemovePlayerAttachedObject(playerid,4);
            SendClientMessage(playerid,0xFFFFFFAA,"[Server Info] Desescudado !");
            SetPVarInt(playerid, "Escudo", 0);
        }
        else if(GetPVarInt(playerid, "Escudo") != 10)
        {
            SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);
            SetPlayerAttachedObject(playerid,2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);
            SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);
            SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);
            SendClientMessage(playerid,0xFFFFFFAA,"[Server Info] Escudado !");
            SetPVarInt(playerid, "Escudo", 10);
        }
        return 1;
    }
q q ta errado q da erro de ProxDetector?
Erros:
Код:
C:\Documents and Settings\Administrador\Desktop\BNW\pawno\include\streamer.inc(449) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(3091) : error 004: function "FixHour" is not implemented
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(4569) : error 004: function "FixHour" is not implemented
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(5172) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(5173) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(5174) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(5190) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(5191) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(5192) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(5208) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(5209) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(5210) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(5238) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(5250) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(5265) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(5277) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(5921) : error 017: undefined symbol "GetName"
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(5925) : error 017: undefined symbol "GetName"
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(5929) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(5941) : error 017: undefined symbol "GetName"
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(5945) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(5965) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(5981) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(6001) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(6017) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(6038) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(6054) : error 004: function "ProxDetector" is not implemented

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
OBS: ERRO ACONTECEM DPS Q EU COLOCO ESSE CODE AI *-*
Reply
#2

Quote:
Originally Posted by [FeK]Netizen
Посмотреть сообщение
pawn Код:
....
q q ta errado q da erro de ProxDetector?
Erros:
Код:
C:\Documents and Settings\Ad....
OBS: ERRO ACONTECEM DPS Q EU COLOCO ESSE CODE AI *-*
Vocк esqueceu de fechar a funзгo.
pawn Код:
}
Tente:
pawn Код:
if(strcmp("/escudo",cmdtext,true,7)==0)
{
    if(gTeam[playerid] == 2 || IsACop(playerid))
    {
        if(SetPVarInt(playerid, "Escudo") == 10)
        {
            RemovePlayerAttachedObject(playerid,1);
            RemovePlayerAttachedObject(playerid,2);
            RemovePlayerAttachedObject(playerid,3);
            RemovePlayerAttachedObject(playerid,4);
            SendClientMessage(playerid,0xFFFFFFAA,"[Server Info] Desescudado !");
            SetPVarInt(playerid, "Escudo", 0);
        }
        else if(GetPVarInt(playerid, "Escudo") != 10)
        {
            SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);
            SetPlayerAttachedObject(playerid,2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);
            SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);
            SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);
            SendClientMessage(playerid,0xFFFFFFAA,"[Server Info] Escudado !");
            SetPVarInt(playerid, "Escudo", 10);
        }
        return 1;
    }
}
Reply
#3

pawn Код:
f(strcmp("/escudo",cmdtext,true,7)==0)
    {
    if(gTeam[playerid] == 2 || IsACop(playerid))
    {
        if(SetPVarInt(playerid, "Escudo") == 10)
        {
            RemovePlayerAttachedObject(playerid,1);
            RemovePlayerAttachedObject(playerid,2);
            RemovePlayerAttachedObject(playerid,3);
            RemovePlayerAttachedObject(playerid,4);
            SendClientMessage(playerid,0xFFFFFFAA,"[Server Info] Desescudado !");
            SetPVarInt(playerid, "Escudo", 0);
        }
        else if(GetPVarInt(playerid, "Escudo") != 10)
        {
            SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);
            SetPlayerAttachedObject(playerid,2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);
            SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);
            SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);
            SendClientMessage(playerid,0xFFFFFFAA,"[Server Info] Escudado !");
            SetPVarInt(playerid, "Escudo", 10);
        }
        return 1;
    }
}
Reply
#4

Код:
C:\Documents and Settings\Administrador\Desktop\BNW\pawno\include\streamer.inc(449) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(9335) : warning 217: loose indentation
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(52436) : warning 217: loose indentation
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(52440) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(52442) : error 017: undefined symbol "RemovePlayerAttachedObject"
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(52443) : error 017: undefined symbol "RemovePlayerAttachedObject"
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(52444) : error 017: undefined symbol "RemovePlayerAttachedObject"
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(52445) : error 017: undefined symbol "RemovePlayerAttachedObject"
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(52451) : error 017: undefined symbol "SetPlayerAttachedObject"
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(52452) : error 017: undefined symbol "SetPlayerAttachedObject"
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(52453) : error 017: undefined symbol "SetPlayerAttachedObject"
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(52454) : error 017: undefined symbol "SetPlayerAttachedObject"
C:\Documents and Settings\Administrador\Desktop\BNW\gamemodes\BNW.pwn(52462) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


8 Errors.
Reply
#5

Atualize suas includes para 0.3b ou 0.3c.

pawn Код:
if(strcmp("/escudo",cmdtext,true,7)==0)
    {
    if(gTeam[playerid] == 2 || IsACop(playerid))
    {
        if(SetPVarInt(playerid, "Escudo") == 10)
        {
            RemovePlayerAttachedObject(playerid,1);
            RemovePlayerAttachedObject(playerid,2);
            RemovePlayerAttachedObject(playerid,3);
            RemovePlayerAttachedObject(playerid,4);
            SendClientMessage(playerid,0xFFFFFFAA,"[Server Info] Desescudado !");
            SetPVarInt(playerid, "Escudo", 0);
        }
        else if(GetPVarInt(playerid, "Escudo") != 10)
        {
            SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);
            SetPlayerAttachedObject(playerid,2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);
            SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);
            SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);
            SendClientMessage(playerid,0xFFFFFFAA,"[Server Info] Escudado !");
            SetPVarInt(playerid, "Escudo", 10);
        }
    }
        return 1;
    }

I'm Back!
Reply
#6

Quote:
Originally Posted by TheGarfield
Посмотреть сообщение
Atualize suas includes para 0.3b ou 0.3c.

pawn Код:
if(strcmp("/escudo",cmdtext,true,7)==0)
    {
    if(gTeam[playerid] == 2 || IsACop(playerid))
    {
        if(SetPVarInt(playerid, "Escudo") == 10)
        {
            RemovePlayerAttachedObject(playerid,1);
            RemovePlayerAttachedObject(playerid,2);
            RemovePlayerAttachedObject(playerid,3);
            RemovePlayerAttachedObject(playerid,4);
            SendClientMessage(playerid,0xFFFFFFAA,"[Server Info] Desescudado !");
            SetPVarInt(playerid, "Escudo", 0);
        }
        else if(GetPVarInt(playerid, "Escudo") != 10)
        {
            SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);
            SetPlayerAttachedObject(playerid,2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);
            SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);
            SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);
            SendClientMessage(playerid,0xFFFFFFAA,"[Server Info] Escudado !");
            SetPVarInt(playerid, "Escudo", 10);
        }
    }
        return 1;
    }

I'm Back!
]
se eu nгo usasse includes 0.3c nгo codaria o Fatal Drift com cores em Dialog --'
Reply
#7

Vai Ver Por Que Ele Nao Sabia ?
Reply
#8

Quote:
Originally Posted by [FeK]Netizen
Посмотреть сообщение
]
se eu nгo usasse includes 0.3c nгo codaria o Fatal Drift com cores em Dialog --'
Ele nгo estava errado, as funзхes que resultaram no erro sгo funзхes jб incluнdas no "<a_samp>", se deu o erro, significa que o "Pawno" fez a leitura de outro destino (Sem atualizaзгo 0.3c). Isso geralmente acontece quando vocк tem vбrias pastas com o Pawno (Incluindo alguma sem os "Includes" atualizados), assim, ele pode estar fazendo a compilaзгo utilizando alguma destas "cуpias". Tente "Ctrl+C" no seu script atual, depois abra um novo arquivo no "Pawno" correto, apague todo o cуdigo e "Ctrl+V". Tente compilar.
Reply
#9

Quote:
Originally Posted by Kruger
Посмотреть сообщение
Vai Ver Por Que Ele Nao Sabia ?
kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk kkkkkkkkkkkkkkkkkkkkkkkkkk.
Nao sei se voce postou na intenзao de relatar a mesma coisa que eu entendi, mas pelo que eu entendi eu ri pra caralho kkkkkkkk

Acho que ta faltando includes como o cara ali em cima disse.

Voce atualizou as includes mas talvez uma delas que possui essa funзao esteja faltando
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)