[Ajuda] Problema com undefined symbol
#1

Eu sou iniciante em pawno e gostaria de resolver 1 problema que aconteceu inesperadamente...
No meu GM eu coloquei um sistema de ADM do LLADMIN(Um FS), eu simplesmente abri o FS e o GM e passei, blz, atй ai tudo bem, eu compilei e conseguir usar sem problemas em meu servidor, e junto ao meu GM tb tem um sistema de evento simples, entгo eu apenas peguei esse sistema todo de Evento e coloquei ele mais pra baixo do GM, e compilei, quando eu compilei, ele comeзou a dar erro com o sistema de evento, entгo jб que n era importante eu resolvi deletar, com cuidado deletei apenas tudo q era sу sobre o sistema de evento, e depois disso ele comeзou a tretar com meu sistema de ADM, sendo q eu n deletei nem uma palavra dele. Esse й o problema que da:
Код:
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1014) : error 017: undefined symbol "Nome"
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1015) : error 017: undefined symbol "Nome"
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1016) : error 017: undefined symbol "Nome"
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1017) : error 017: undefined symbol "Nome"
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1018) : error 017: undefined symbol "Nome"
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1019) : error 017: undefined symbol "Nome"
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1020) : error 017: undefined symbol "Nome"
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1021) : error 017: undefined symbol "Nome"
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1022) : error 017: undefined symbol "Nome"
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1023) : error 017: undefined symbol "Nome"
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1024) : error 017: undefined symbol "Nome"
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1025) : error 017: undefined symbol "Nome"
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1026) : error 017: undefined symbol "Nome"
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1027) : error 017: undefined symbol "Nome"
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1028) : error 017: undefined symbol "Nome"
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1029) : error 017: undefined symbol "Nome"
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1030) : error 017: undefined symbol "Nome"
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1031) : error 017: undefined symbol "Nome"
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1032) : error 017: undefined symbol "Nome"
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1033) : error 017: undefined symbol "Nome"
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1034) : error 017: undefined symbol "Nome"
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1035) : error 017: undefined symbol "Nome"
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1036) : error 017: undefined symbol "Nome"
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1037) : error 017: undefined symbol "Nome"
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1038) : error 017: undefined symbol "Nome"
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1039) : error 017: undefined symbol "Nome"
E as linhas correspondentes sгo essas:
Код:
	if(strfind(Nome(playerid),"clock$",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"prn",true) != -1) Ban(playerid);
 	if(strfind(Nome(playerid),"Carl",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"con",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"SgtPepper",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"Pepe",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"nul",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"Pepno",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"Pepsi",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"Rocky",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"Carl",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"Vino_Toro",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"Zoquete",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"AquilesBrinco",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"Azucar",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"Manfrey",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"Papirola",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"[ViP]Labrik",true) != -1)Ban(playerid);
	if(strfind(Nome(playerid),"Sony",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"Pacman",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"Batman",true) != -1)Ban(playerid);
	if(strfind(Nome(playerid),"aux",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"com1",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"com2",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"com3",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"com4",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"com5",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"com6",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"com7",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"com8",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"com9",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"lpt1",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"lpt2",true) != -1) Ban(playerid);
 	if(strfind(Nome(playerid),"lpt3",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"lpt4",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"lpt5",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"lpt6",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"lpt8",true) != -1) Ban(playerid);
	if(strfind(Nome(playerid),"lpt9",true) != -1) Ban(playerid);
Ajuda pf ae, agradeзo desde jб.
Reply
#2

Estб faltando criar a funзгo Nome:
pawn Код:
Nome(id)
{
    new n_o_m_e[MAX_PLAYER_NAME];
    GetPlayerName(id, n_o_m_e, sizeof n_o_m_e);
    return n_o_m_e;
}
Reply
#3

Erro continua o msm :/
Reply
#4

Tente assim:

pawn Код:
stock Nome(playerid)
{
    new Nome[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Nome, 24);
    return Nome;
}
Reply
#5

Novos erros surgem, e aqueles outros continuam. Desculpa se fiz merda, sou novato nisso .-.

Код:
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1010) : error 029: invalid expression, assumed zero
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1010) : error 017: undefined symbol "Nome"
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1012) : warning 219: local variable "Nome" shadows a variable at a preceding level
C:\Users\Tico\Desktop\Pastas\ServerSAMPModificado 0.1\gamemodes\meugm.pwn(1014) : error 090: public functions may not return arrays (symbol "Streamer_OnPlayerConnect")
Reply
#6

No FS em que peguei o sistema achei isso:

pawn Код:
stock Nome(playerid)
{
    new pNome[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pNome, 24);
    return pNome;
}
E fui conferir no meu GM e tb tem isso, agora quero saber o porque q meu pawno n estб reconhecendo ou ignorando essas linhas.
Reply
#7

tente colocar a stock perto do inicio do gamemode ja aconteceu isso comigo tambйm й alguma coisa que vocк mexeu so nгo sei ao certo oque.
Reply
#8

Ele continua dando milhares de erros
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)