SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 05/02/2017, 10:17 PM   #1
pedrotvr
Huge Clucker
 
Join Date: Nov 2013
Posts: 404
Reputation: 7
Default warning 208: function with tag result used before definition, forcing reparse

Estou tentando adicionar esse ANTI Hack no meu GM:
http://forum.sa-mp.com/showthread.php?t=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?
pedrotvr is offline   Reply With Quote
Old 05/02/2017, 10:28 PM   #2
FallweN
Huge Clucker
 
FallweN's Avatar
 
Join Date: Jan 2014
Location: Search on Google
Posts: 444
Reputation: 98
Default Re: warning 208: function with tag result used before definition, forcing reparse

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
__________________

[Tool/Web/Other]
User Control Panel
[GameMode] The Brasil Drift
FallweN is offline   Reply With Quote
Old 05/02/2017, 11:38 PM   #3
pedrotvr
Huge Clucker
 
Join Date: Nov 2013
Posts: 404
Reputation: 7
Default Re: warning 208: function with tag result used before definition, forcing reparse

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...
pedrotvr is offline   Reply With Quote
Old 16/02/2017, 12:40 AM   #4
ubunttu
Big Clucker
 
Join Date: Mar 2015
Posts: 167
Reputation: 0
Default Re: warning 208: function with tag result used before definition, forcing reparse

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
__________________
ubunttu is offline   Reply With Quote
Old 16/02/2017, 07:42 PM   #5
ubunttu
Big Clucker
 
Join Date: Mar 2015
Posts: 167
Reputation: 0
Default Re: warning 208: function with tag result used before definition, forcing reparse

Alguém sabe o pq disso?
__________________
ubunttu is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
warning 208: function with tag result used before definition, forcing reparse khanhbgpro Scripting Help 1 25/11/2016 01:36 PM
[HELP] Warning 208: function with tag result used before definition, forcing reparse KONTROWKEN Scripting Help 1 09/05/2015 05:28 PM
warning 208: function with tag result used before definition, forcing reparse Ahmad45123 Scripting Help 1 23/04/2015 10:32 PM
warning 208: function with tag result used before definition, forcing reparse Wayland Scripting Help 1 23/01/2014 12:28 PM
warning 208: function with tag result used before definition, forcing reparse Trooper[Y] Help Archive 1 24/06/2010 03:57 PM


All times are GMT. The time now is 05:47 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.