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

Hello guys,

I have problem with timers in function, i cant find whats wrong

I also tryed with convert FUNCTION > STOCK, it has no warnings but timers didnt work..

Pawno:
Код:
(5014) : warning 208: function with tag result used before definition, forcing reparse
(5064) : warning 208: function with tag result used before definition, forcing reparse
(5070) : warning 208: function with tag result used before definition, forcing reparse
Errored lines:
PHP код:
5014 - FUNCTION: Skillovi(playerid)
5064 - FUNCTION: DestroyIt()
5070 - FUNCTION: StreljanaObjekti() 
Reply
#2

put them on top.
Reply
#3

Quote:
Originally Posted by RogueDrifter
Посмотреть сообщение
put them on top.
Same warnings
Reply
#4

Someone ?
Reply
#5

Forward it with the tag

Like

pawn Код:
forward Float:function(params);
Reply
#6

Quote:
Originally Posted by Lucases
Посмотреть сообщение
Forward it with the tag

Like

pawn Код:
forward Float:function(params);
Still same
Reply
#7

Quote:
Originally Posted by RoX123
Посмотреть сообщение
Still same
Post function definition and forward line
Reply
#8

Quote:
Originally Posted by Lucases
Посмотреть сообщение
Post function definition and forward line
PHP код:
forward Float:Skillovi(playerid); 
PHP код:
5014 - FUNCTION: Skillovi(playerid
Reply
#9

Why have you forwarded the function? Is it supposed to be a callback or a function?
Reply
#10

Quote:
Originally Posted by Fratello
Посмотреть сообщение
Why have you forwarded the function? Is it supposed to be a callback or a function?
Without forward same warning,

Function is used for destroying some objects, i tryed to convert it to stock, it havent warnings but timers, and object destroys didnt work, i dont know what i forget
Reply
#11

Someone? Still not fixed
Reply
#12

Quote:
Originally Posted by RoX123
View Post
PHP Code:
forward Float:Skillovi(playerid); 
PHP Code:
5014 - FUNCTION: Skillovi(playerid
This is not helpful. Please show actual code, at least 4 lines surrounding it. Put the line number somewhere ese.
By the way, what is "FUNCTION:"? Is it a macro to forward the function automatically or something? Please show it if it's a macro

This error happens because you are calling a public function before defining it (eg. Using the function at line 1234 and the function is defined at line 567.
Reply
#13

Quote:
Originally Posted by AdrianGraber
View Post
This is not helpful. Please show actual code, at least 4 lines surrounding it. Put the line number somewhere ese.
By the way, what is "FUNCTION:"? Is it a macro to forward the function automatically or something? Please show it if it's a macro

This error happens because you are calling a public function before defining it (eg. Using the function at line 1234 and the function is defined at line 567.
Quote:

(eg. Using the function at line 1234 and the function is defined at line 567.

you mean using the function at 567 and the function is defined at 1234.
Reply
#14

Quote:
Originally Posted by AdrianGraber
View Post
This is not helpful. Please show actual code, at least 4 lines surrounding it. Put the line number somewhere ese.
By the way, what is "FUNCTION:"? Is it a macro to forward the function automatically or something? Please show it if it's a macro

This error happens because you are calling a public function before defining it (eg. Using the function at line 1234 and the function is defined at line 567.
There is not any forward for this function, i have warnings no errors

PHP Code:
FUNCTION: Skillovi(playerid)
{
    
SetPlayerSkillLevel(playeridWEAPONSKILL_PISTOLPlayerInfo[playerid][Pistol]);
    
SetPlayerSkillLevel(playeridWEAPONSKILL_DESERT_EAGLEPlayerInfo[playerid][Deagle]);
    
SetPlayerSkillLevel(playeridWEAPONSKILL_SHOTGUNPlayerInfo[playerid][Shotgun]);
    
SetPlayerSkillLevel(playeridWEAPONSKILL_SAWNOFF_SHOTGUNPlayerInfo[playerid][Sawnoff]);
    
SetPlayerSkillLevel(playeridWEAPONSKILL_SPAS12_SHOTGUNPlayerInfo[playerid][Spas12]);
    
SetPlayerSkillLevel(playeridWEAPONSKILL_MICRO_UZIPlayerInfo[playerid][Uzi]);
    
SetPlayerSkillLevel(playeridWEAPONSKILL_MP5PlayerInfo[playerid][Mp5]);
    
SetPlayerSkillLevel(playeridWEAPONSKILL_AK47PlayerInfo[playerid][Ak47]);
    
SetPlayerSkillLevel(playeridWEAPONSKILL_M4PlayerInfo[playerid][M4]);
    
SetPlayerSkillLevel(playeridWEAPONSKILL_SNIPERRIFLEPlayerInfo[playerid][Sniper]);
    if(
IsACop(playerid))
    {
    
SetPlayerSkillLevel(playeridWEAPONSKILL_PISTOL_SILENCED1000);
    }
    else
    {
    
SetPlayerSkillLevel(playeridWEAPONSKILL_PISTOL_SILENCEDPlayerInfo[playerid][PistolS]);
    }

Reply
#15

FIXED

I put theese functions bottom on script and no warnings !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)