[Ajuda] erro no codigo do cifrгo do meu gamemode
#1

bom estou com um erro muito chato que vem desse codigo

C:\Users\WainnerSantos\Desktop\TDM\gamemodes\FL.pw n(5830) : error 017: undefined symbol "Player"
C:\Users\WainnerSantos\Desktop\TDM\gamemodes\FL.pw n(5830) : warning 215: expression has no effect
C:\Users\WainnerSantos\Desktop\TDM\gamemodes\FL.pw n(5830) : error 001: expected token: ";", but found "]"
C:\Users\WainnerSantos\Desktop\TDM\gamemodes\FL.pw n(5830) : error 029: invalid expression, assumed zero
C:\Users\WainnerSantos\Desktop\TDM\gamemodes\FL.pw n(5830) : fatal error 107: too many error messages on one line

ERRO AO COMPILAR


AGORA O CODIGO DAONDE VEM O ERRO

// -------------------------------------- CIFRAO -------------------------------//
if(newkeys == KEY_SECONDARY_ATTACK) // Cifrao
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, 2777.0425,-955.7725,46.7183)) //chapadao
{
if(Player[playerid][pEXERCITO] >= 1 || Player[playerid][pBOPE] >= 1 || Player[playerid][pPM] >= 1 || Player[playerid][pCORE] >= 1)return SendClientMessage(playerid, COR_ERRO, "ERRO: Policial nгo pega cifrгo ");
CifraoCMD1(playerid);
}
if(IsPlayerInRangeOfPoint(playerid, 1.0, 893.9015,2219.3218,10.8203)) //Nova Holanda
{
if(Player[playerid][pEXERCITO] >= 1 || Player[playerid][pBOPE] >= 1 || Player[playerid][pPM] >= 1 || Player[playerid][pCORE] >= 1)return SendClientMessage(playerid, COR_ERRO, "ERRO: Policial nгo pega cifrгo ");
CifraoCMD2(playerid);
}
if(IsPlayerInRangeOfPoint(playerid, 1.0, -1310.2856,2478.3535,93.6766)) //Cidade Alta
{
if(Player[playerid][pEXERCITO] >= 1 || Player[playerid][pBOPE] >= 1 || Player[playerid][pPM] >= 1 || Player[playerid][pCORE] >= 1)return SendClientMessage(playerid, COR_ERRO, "ERRO: Policial nгo pega cifrгo ");
CifraoCMD3(playerid);
}
if(IsPlayerInRangeOfPoint(playerid, 1.0, 2658.3210,-876.0183,72.956) //Urubu
{
if(Player[playerid][pEXERCITO] >= 1 || Player[playerid][pBOPE] >= 1 || Player[playerid][pPM] >= 1 || Player[playerid][pCORE] >= 1)return SendClientMessage(playerid, COR_ERRO, "ERRO: Policial nгo pega cifrгo ");
CifraoLLL1(playerid);
}
if(IsPlayerInRangeOfPoint(playerid, 1.0, 2217.9912,-1046.9722,57.6375)) //Vila Vintem
{
if(Player[playerid][pEXERCITO] >= 1 || Player[playerid][pBOPE] >= 1 || Player[playerid][pPM] >= 1 || Player[playerid][pCORE] >= 1)return SendClientMessage(playerid, COR_ERRO, "ERRO: Policial nгo pega cifrгo ");
CifraoLLL2(playerid);
}
if(IsPlayerInRangeOfPoint(playerid, 1.0, 1832.0605,-843.6221,110.6000)) //Morro do 18
{
if(Player[playerid][pEXERCITO] >= 1 || Player[playerid][pBOPE] >= 1 || Player[playerid][pPM] >= 1 || Player[playerid][pCORE] >= 1)return SendClientMessage(playerid, COR_ERRO, "ERRO: Policial nгo pega cifrгo ");
CifraoLLL3(playerid);
}
if(IsPlayerInRangeOfPoint(playerid, 1.0, 97.0836,2054.3533,17.9935)) //Vila do Joгo
{
if(Player[playerid][pEXERCITO] >= 1 || Player[playerid][pBOPE] >= 1 || Player[playerid][pPM] >= 1 || Player[playerid][pCORE] >= 1)return SendClientMessage(playerid, COR_ERRO, "ERRO: Policial nгo pega cifrгo ");
CifraoTD31(playerid);
}
if(IsPlayerInRangeOfPoint(playerid, 1.0, 2019.6045,2836.8647,12.5185)) //Sapo de Camarб
{
if(Player[playerid][pEXERCITO] >= 1 || Player[playerid][pBOPE] >= 1 || Player[playerid][pPM] >= 1 || Player[playerid][pCORE] >= 1)return SendClientMessage(playerid, COR_ERRO, "ERRO: Policial nгo pega cifrгo ");
CifraoTD32(playerid);
}
if(IsPlayerInRangeOfPoint(playerid, 1.0, 0.0,2859.3665,11.4797)) //Baixa Do Sapateiro
{
if(Player[playerid][pEXERCITO] >= 1 || Player[playerid][pBOPE] >= 1 || Player[playerid][pPM] >= 1 || Player[playerid][pCORE] >= 1)return SendClientMessage(playerid, COR_ERRO, "ERRO: Policial nгo pega cifrгo ");
CifraoTD33(playerid);
}
if(IsPlayerInRangeOfPoint(playerid, 1.0, 0.0,0.0,0.0)) //barгo
{
if(Player[playerid][pEXERCITO] >= 1 || Player[playerid][pBOPE] >= 1 || Player[playerid][pPM] >= 1 || Player[playerid][pCORE] >= 1)return SendClientMessage(playerid, COR_ERRO, "ERRO: Policial nгo pega cifrгo ");
CifraoMLC1(playerid);
}
if(IsPlayerInRangeOfPoint(playerid, 1.0, 0.0,0.0,0.0)) //Fuba
{
if(Player[playerid][pEXERCITO] >= 1 || Player[playerid][pBOPE] >= 1 || Player[playerid][pPM] >= 1 || Player[playerid][pCORE] >= 1)return SendClientMessage(playerid, COR_ERRO, "ERRO: Policial nгo pega cifrгo ");
CifraoMLC2(playerid);
}
if(IsPlayerInRangeOfPoint(playerid, 1.0, 0.0,0.0,0.0)) //Bairro Tanque
{
if(Player[playerid][pEXERCITO] >= 1 || Player[playerid][pBOPE] >= 1 || Player[playerid][pPM] >= 1 || Player[playerid][pCORE] >= 1)return SendClientMessage(playerid, COR_ERRO, "ERRO: Policial nгo pega cifrгo ");
CifraoMLC3(playerid);
}
}

QUEM PUDER ME AJUDAR VOU AGRADEЗER
Reply
#2

Se nгo me engano esse "Player" nгo existe, por isso da esse erro, atualmente quase todos os registros/logins leva enums, verifique se existe essa enum "Player"
Reply
#3

Nao eu peguei de uma gm q pega de boa pow
Reply
#4

vc esqueceu de definir o player
Reply
#5

Aonde ta Player[playerid] tenta PlayerInfo[playerid]
Reply
#6

mas ja coloquei PlayerInfo[playerid] continuou msm coisa
Reply
#7

no topo

new Player[MAX_PLAYERS][pInfo];

Depois vai na sua enum onde contem pExercito pPM etc... e coloca assim

enum pInfo
{
pExercito,
pPM,
etc...,

}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)