SA-MP Forums Archive
[Ajuda] warning 208: function with tag result used before definition, forcing reparse - 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: [Ajuda] warning 208: function with tag result used before definition, forcing reparse (/showthread.php?tid=628102)



warning 208: function with tag result used before definition, forcing reparse - pedrotvr - 05.02.2017

Estou tentando adicionar esse ANTI Hack no meu GM:
https://sampforum.blast.hk/showthread.php?tid=552289

Pra remover aqueles hacks de NO-SPREAD, mas nгo estб funcionando
E quando compila ta dando esse erro em duas linhas:
Code:
warning 208: function with tag result used before definition, forcing reparse
Code:
stock Float:GetPositiveNumber(Float:number) {
Code:
stock Float:GetDistanceBetweenPoints(Float:x1, Float:y1, Float:z1, Float:x2, Float:y2, Float:z2) {
O que eu devo fazer?


Re: warning 208: function with tag result used before definition, forcing reparse - FallweN - 05.02.2017

mude para
PHP Code:
forward Float:GetPositiveNumber(Float:number);
public 
Float:GetPositiveNumber(Float:number
PHP Code:
forward Float:GetDistanceBetweenPoints(Float:x1Float:y1Float:z1Float:x2Float:y2Float:z2);
public 
Float:GetDistanceBetweenPoints(Float:x1Float:y1Float:z1Float:x2Float:y2Float:z2



Re: warning 208: function with tag result used before definition, forcing reparse - pedrotvr - 05.02.2017

Quote:
Originally Posted by FallweN
View Post
mude para
PHP Code:
forward Float:GetPositiveNumber(Float:number);
public 
Float:GetPositiveNumber(Float:number
PHP Code:
forward Float:GetDistanceBetweenPoints(Float:x1Float:y1Float:z1Float:x2Float:y2Float:z2);
public 
Float:GetDistanceBetweenPoints(Float:x1Float:y1Float:z1Float:x2Float:y2Float:z2
Eu troquei, compilou, mas nгo ta detectando quando eu uso o spread no cleo...


Re: warning 208: function with tag result used before definition, forcing reparse - ubunttu - 16.02.2017

Comigo foi diferente...
Se eu tento:
Code:
stock Float:GetPositiveNumber(Float:number) {
	if(0.0 > number) { number *= -1.0; }
	return number;
}
stock Float:GetDistanceBetweenPoints(Float:x1, Float:y1, Float:z1, Float:x2, Float:y2, Float:z2) {
	return VectorSize(x1-x2, y1-y2, z1-z2);
}
Da esse erro:
Code:
function with tag result used before definition, forcing reparse
function with tag result used before definition, forcing reparse
E se eu tento:
Code:
forward Float:GetPositiveNumber(Float:number); public Float:GetPositiveNumber(Float:number) {
	if(0.0 > number) { number *= -1.0; }
	return number;
}
forward Float:GetDistanceBetweenPoints(Float:x1, Float:y1, Float:z1, Float:x2, Float:y2, Float:z2); public Float:GetDistanceBetweenPoints(Float:x1, Float:y1, Float:z1, Float:x2, Float:y2, Float:z2) {
	return VectorSize(x1-x2, y1-y2, z1-z2);
}
Da esse erro:
Code:
warning 208: function with tag result used before definition, forcing reparse
E tambйm nгo tб detectando


Re: warning 208: function with tag result used before definition, forcing reparse - ubunttu - 16.02.2017

Alguйm sabe o pq disso?