SA-MP Forums Archive
erro na hora de compilar - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: erro na hora de compilar (/showthread.php?tid=207335)



erro na hora de compilar - thaw_ps - 05.01.2011

(16 : error 017: undefined symbol "Archivo"
(170) : error 017: undefined symbol "dini_create"
(171) : error 017: undefined symbol "dini_Inset"
(230) : error 017: undefined symbol "string"
(230) : error 017: undefined symbol "string"
(230) : error 029: invalid expression, assumed zero
Код:
public OnPlayerText(playerid, text[])
{
	if(text[0]== '!') {
	new String[128]; GetPlayerName(playerid,string,sizeof(string));
	format(string,sizeof(string),"GangChat: %s: %s",string,text[1]);
	SendMessageToGang(playerid,0xFFFFFFFF,string);
    }
    return 0;
Aqui esta de vermelho й a linha do erro

Код:
 linha 168	if (!dini_Exists(Archivo))
{
linha  170	dini_create(Archivo);
Linha 171	dini_Inset(Archivo,"GangCreates", 0);
}
	return 1;



Re: erro na hora de compilar - Fabricio_Rios - 05.01.2011

vc escreveu dini_Inset o certo й dini_IntSet

o pawn й case sensitivity ou seja ele diferencia maiusculo e minusculo troque dini_create por dini_Create

o erro da string a mesma coisa vc criou a string com o nome String e depois usou ela com o nome string

o erro do Archivo й porque ele ta indefinido veja se vc nгo cometeu o mesmo erro

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(text[0]== '!') {
    new string[128]; GetPlayerName(playerid,string,sizeof(string));
    format(string,sizeof(string),"GangChat: %s: %s",string,text[1]);
    SendMessageToGang(playerid,0xFFFFFFFF,string);
    }
    return 0;
pawn Код:
if (!dini_Exists(Archivo))
{
    dini_Create(Archivo);
    dini_IntSet(Archivo,"GangCreates", 0);
}
    return 1;
arrumei o codigo pra vc


Re: erro na hora de compilar - blackwave - 05.01.2011

pawn Код:
if (!dini_Exists(file))
{
    dini_create(file);
    dini_Intset(file,"GangCreates", 0);
}
Se nao tem o file, add no topo do gm/fs:
Код:
 new file[256];
return 1;


Re: erro na hora de compilar - Fabricio_Rios - 05.01.2011

dini_Create(file);
dini_IntSet(file,"GangCreates", 0);


Re: erro na hora de compilar - ManoLexuS - 05.01.2011

Код:
public OnPlayerText(playerid, text[])
{
    if(text[0]== '!') {
    new string[128]; 
    GetPlayerName(playerid,string,sizeof(string));
    format(string,sizeof(string),"GangChat: %s: %s",string,text[1]);
    SendMessageToGang(playerid,0xFFFFFFFF,string);
    }
    return 0;
}
Nao existe isso:
Код:
dini_create
dini_Inset
e sim:
Код:
dini_Create
dini_IntSet
E o Archivo voce tem que definir em algum lugar nй? Da pra ver que vc copiou o cуdigo de algum lugar e nem sabe oq significa.

Espero ter ajudado.


Re: erro na hora de compilar - blackwave - 05.01.2011

Quote:
Originally Posted by Fabricio_Rios
Посмотреть сообщение
dini_Create(file);
dini_IntSet(file,"GangCreates", 0);
Sim. Nao vi, malz.


Re: erro na hora de compilar - Fabricio_Rios - 05.01.2011

@blackwave suave (:


Respuesta: erro na hora de compilar - thaw_ps - 05.01.2011

mudei pro file e fiz isso so q da o mesmo erro que dava com o Archivo
error 017: undefined symbol "file"


Re: erro na hora de compilar - Fabricio_Rios - 05.01.2011

vc definiu o file?
pawn Код:
new file[256];



Re: erro na hora de compilar - Ricop522 - 05.01.2011

Easy:

#define dini_create dini_Create
#define dini_Intset dini_IntSet