SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 23/01/2014, 12:16 PM   #1
Wayland
Big Clucker
 
Wayland's Avatar
 
Join Date: Sep 2013
Location: Endonesyah
Posts: 55
Reputation: 2
Default warning 208: function with tag result used before definition, forcing reparse

Here's the scripts
pawn Code:
stock Float:IsABoomboxNearby(Float:posX, Float:posY, Float:posZ, playerid)//this line
{
    new Float: boomboxDistance;
    boomboxDistance = GetDistance(posX, posY, posZ, BoomboxInfo[playerid][bbPosX], BoomboxInfo[playerid][bbPosY], BoomboxInfo[playerid][bbPosZ]);
    return boomboxDistance;
}

Warning
PHP Code:
C:\Users\TEST\Desktop\New folder\LYL.pwn(4065) : warning 208: function with tag result used before definitionforcing reparse
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase


1 Warning

__________________
Server: 213.57.186.228:7777

Wayland is offline   Reply With Quote
Old 23/01/2014, 12:28 PM   #2
Kyance
Gangsta
 
Kyance's Avatar
 
Join Date: Mar 2013
Posts: 817
Reputation: 92
Default Re: warning 208: function with tag result used before definition, forcing reparse

Try moving the
pawn Code:
stock Float:IsABoomboxNearby(Float:posX, Float:posY, Float:posZ, playerid)//this line
{
    new Float: boomboxDistance;
    boomboxDistance = GetDistance(posX, posY, posZ, BoomboxInfo[playerid][bbPosX], BoomboxInfo[playerid][bbPosY], BoomboxInfo[playerid][bbPosZ]);
    return boomboxDistance;
}
Before / after the command/place where you're using it.

pawn Code:
//the boombox script here
stock Float:IsABoomboxNearby(Float:posX, Float:posY, Float:posZ, playerid)//this line
{
    new Float: boomboxDistance;
    boomboxDistance = GetDistance(posX, posY, posZ, BoomboxInfo[playerid][bbPosX], BoomboxInfo[playerid][bbPosY], BoomboxInfo[playerid][bbPosZ]);
    return boomboxDistance;
}
Or
pawn Code:
stock Float:IsABoomboxNearby(Float:posX, Float:posY, Float:posZ, playerid)//this line
{
    new Float: boomboxDistance;
    boomboxDistance = GetDistance(posX, posY, posZ, BoomboxInfo[playerid][bbPosX], BoomboxInfo[playerid][bbPosY], BoomboxInfo[playerid][bbPosZ]);
    return boomboxDistance;
}
//the boombox script here

When i compile it, i get no warnings.

Maybe check the line above it or something.
__________________
I'm amazed how you people are still wasting your time on a decade old game.

Last edited by Kyance; 23/01/2014 at 12:28 PM. Reason: I'm just guessing lol
Kyance 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[HELP!!!] ChangThai Scripting Help 1 07/11/2013 11:13 AM
warning 208: function with tag result used before definition, forcing reparse vardanega Scripting Help 2 13/07/2012 07:14 PM
(Solved)function with tag result used before definition, forcing reparse linuxthefish Help Archive 2 31/03/2011 07:20 PM
Function with tag result used before definition, forcing reparse wups Help Archive 0 21/08/2010 06:51 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:43 AM.


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