[Ajuda] Erro na public
#1

Код:
public CheckArma() // Entrar com armas na DP
{
	new string[128];
	new giveplayer[MAX_PLAYER_NAME];
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
	   	if(IsPlayerConnected(i) && PlayerToPoint(5.0, playerid, 245.1631,71.3908,1003.6406))
	   	{
// Minigun
if(GetPlayerWeapon(i) == 1)
   			    {
				GetPlayerName(i, giveplayer, sizeof(giveplayer));
			    format(string, sizeof(string), "Alarme de seguranзa da DP: %s[ID %d] Entrou na DP armado  enviem uma viatura rapidamente para lб!", giveplayer,i);
		        ABroadCast(COLOR_LIGHTRED,string,1);
				}
else if(GetPlayerWeapon(i) == 37)
				{
				GetPlayerName(i, giveplayer, sizeof(giveplayer));
			    format(string, sizeof(string), "Alarme de seguranзa da DP: %s[ID %d] Entrou na DP armado, enviem uma viatura rapidamente para lб!", giveplayer,i);
		        ABroadCast(COLOR_LIGHTRED,string,1);
                }
    		}
	}
	return 1;
}
Erro: Trava o server
Код:
 
C:\Documents and Settings\Usuario\Desktop\BAS\pawno\include\servermoneyGM.inc(16) : error 004: function "GMExit" is not implemented
C:\Documents and Settings\Usuario\Desktop\BAS\pawno\include\servermoneyGM.inc(47) : error 004: function "OnPlayerHaveExtraCash" is not implemented
C:\Documents and Settings\Usuario\Desktop\BAS\pawno\include\seif_walk.inc(39) : error 004: function "Walk_OnPlayerKeyStateChange" is not implemented
C:\Documents and Settings\Usuario\Desktop\BAS\gamemodes\Bac1.pwn(1081) : error 004: function "SaveCars" is not implemented
C:\Documents and Settings\Usuario\Desktop\BAS\gamemodes\Bac1.pwn(3996) : error 017: undefined symbol "ResetPlayerWeaponsEx"
C:\Documents and Settings\Usuario\Desktop\BAS\gamemodes\Bac1.pwn(4042) : error 017: undefined symbol "ResetPlayerWeaponsEx"
C:\Documents and Settings\Usuario\Desktop\BAS\gamemodes\Bac1.pwn(4308) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\Usuario\Desktop\BAS\gamemodes\Bac1.pwn(4453) : error 017: undefined symbol "ResetPlayerWeaponsEx"
C:\Documents and Settings\Usuario\Desktop\BAS\gamemodes\Bac1.pwn(4519) : error 017: undefined symbol "NomeORG"
C:\Documents and Settings\Usuario\Desktop\BAS\gamemodes\Bac1.pwn(4521) : error 017: undefined symbol "ConviteInfoOrg"
C:\Documents and Settings\Usuario\Desktop\BAS\gamemodes\Bac1.pwn(4547) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\Usuario\Desktop\BAS\gamemodes\Bac1.pwn(4576) : error 017: undefined symbol "ResetPlayerWeaponsEx"
C:\Documents and Settings\Usuario\Desktop\BAS\gamemodes\Bac1.pwn(5025) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\Usuario\Desktop\BAS\gamemodes\Bac1.pwn(5082) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\Usuario\Desktop\BAS\gamemodes\Bac1.pwn(5139) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\Usuario\Desktop\BAS\gamemodes\Bac1.pwn(5196) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\Usuario\Desktop\BAS\gamemodes\Bac1.pwn(5253) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\Usuario\Desktop\BAS\gamemodes\Bac1.pwn(5310) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\Usuario\Desktop\BAS\gamemodes\Bac1.pwn(5367) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\Usuario\Desktop\BAS\gamemodes\Bac1.pwn(5424) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\Usuario\Desktop\BAS\gamemodes\Bac1.pwn(5481) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\Usuario\Desktop\BAS\gamemodes\Bac1.pwn(5538) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\Usuario\Desktop\BAS\gamemodes\Bac1.pwn(5589) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\Usuario\Desktop\BAS\gamemodes\Bac1.pwn(5635) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\Usuario\Desktop\BAS\gamemodes\Bac1.pwn(5755) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\Usuario\Desktop\BAS\gamemodes\Bac1.pwn(5812) : error 004: function "ProxDetector" is not implemented

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


26 Errors.
Reply
#2

Pelo que eu vi, ta tudo fexadinho ai '-'

Antes disso, tu nгo esqueзeu de fexar nenhuma chave?

Geralmente 26 erros, й por conta da chave..
Reply
#3

Quote:
Originally Posted by Sampizito
Посмотреть сообщение
Pelo que eu vi, ta tudo fexadinho ai '-'

Antes disso, tu nгo esqueзeu de fexar nenhuma chave?

Geralmente 26 erros, й por conta da chave..
Neste caso, pelos erros citados, nгo й por causa de chaves nгo.
Reply
#4

Quote:
Originally Posted by Los
Посмотреть сообщение
Neste caso, pelos erros citados, nгo й por causa de chaves nгo.
Eis o mistйrio *-*

O que serб? ;P
Reply
#5

gabriel manda o teu gm ou fs enteiro para te ajudarmos melhor.
Reply
#6

Vo sim > d < vo posta meu gm na net ! :S
Reply
#7

Gabriel voce fez a forward CheckArma()


nao entendo muito mais pode ser isso
Reply
#8

Sim eu fiz !
Reply
#9

Nгo ha nenhum problema nessa public que vocк colocou no tуpico. Mas do mesmo jeito, a identaзгo pode te ajudar.

pawn Код:
public CheckArma() // Entrar com armas na DP
{
    new string[128];
    new giveplayer[MAX_PLAYER_NAME];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && PlayerToPoint(5.0, playerid, 245.1631,71.3908,1003.6406))
        {
            // Minigun
            if(GetPlayerWeapon(i) == 1)
            {
                GetPlayerName(i, giveplayer, sizeof(giveplayer));
                format(string, sizeof(string), "Alarme de seguranзa da DP: %s[ID %d] Entrou na DP armado enviem uma viatura rapidamente para lб!", giveplayer,i);
                ABroadCast(COLOR_LIGHTRED,string,1);
            }
            else if(GetPlayerWeapon(i) == 37)
            {
                GetPlayerName(i, giveplayer, sizeof(giveplayer));
                format(string, sizeof(string), "Alarme de seguranзa da DP: %s[ID %d] Entrou na DP armado, enviem uma viatura rapidamente para lб!", giveplayer,i);
                ABroadCast(COLOR_LIGHTRED,string,1);
            }
        }
    }
    return 1;
}
Reply
#10

I mano eu tirei tudo o comando ai continua bugado ja procurei e subtitui varias coisas oque eu faзo ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)