SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 09/01/2020, 11:42 AM   #1
LucasW
Huge Clucker
 
Join Date: Oct 2016
Posts: 217
Reputation: 0
Default warning 208: function with tag result used before definition, forcing reparse

Alguem sabe como resolver esse warning?
PHP Code:
warning 208: function with tag result used before definitionforcing reparse 
Linha:
PHP Code:
stock bool:IsAValidEmail (const email [ ]) { 
LucasW is offline   Reply With Quote
Old 09/01/2020, 03:23 PM   #2
Malandrin
Huge Clucker
 
Malandrin's Avatar
 
Join Date: Jun 2018
Posts: 406
Reputation: 23
Default Re: warning 208: function with tag result used before definition, forcing reparse

Você não precisa definir o bool antes, pode usar ela sem isso.

PHP Code:
IsAValidEmail (const email []) {
    if(
blábláblá)
        return 
true;

    return 
false;

Um caso a parte é quando você deseja retornar um float, ae sim você precisa por o float: antes do nome.
Malandrin is offline   Reply With Quote
Old 09/01/2020, 03:26 PM   #3
LucasW
Huge Clucker
 
Join Date: Oct 2016
Posts: 217
Reputation: 0
Default Re: warning 208: function with tag result used before definition, forcing reparse

Quote:
Originally Posted by Malandrin View Post
Você não precisa definir o bool antes, pode usar ela sem isso.

PHP Code:
IsAValidEmail (const email []) {
    if(
blábláblá)
        return 
true;

    return 
false;

Um caso a parte é quando você deseja retornar um float, ae sim você precisa por o float: antes do nome.
Entendi valeu irmão!
LucasW 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
[Ajuda] warning 208: function with tag result used before definition, forcing reparse pedrotvr Português/Portuguese 4 16/02/2017 07:42 PM
[HELP]: Warning 208: function with tag result used before definition, forcing reparse KONTROWKEN Scripting Help 1 19/12/2015 07:17 PM
warning 208: function with tag result used before definition, forcing reparse [Help] ChangThai Scripting Help 4 15/02/2014 10:31 AM
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 vardanega Scripting Help 2 13/07/2012 07:14 PM


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


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