[Ajuda] warning 208: function with tag result used before definition, forcing reparse
#1

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?
Reply
#2

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
Reply
#3

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...
Reply
#4

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
Reply
#5

Alguйm sabe o pq disso?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)