[Ajuda] error 025 & Warning 209
#1

WARNING 209
PHP код:
108   public OnPlayerDisconnect(playerid)
109   {
110   SaveDVFOMESEDESONO(playerid);
111   
ERROR 025
PHP код:
forward SONO(playerid);
public 
SONO(playerid)
{
        
SetPVarInt(playerid,"SONO",GetPVarInt(playerid,"SONO")-1);
        
SetProgressBarValue(PGSONOGetPVarInt(playerid,"SONO"));
        
UpdateProgressBar(PGSONO,playerid);
        if(
GetPVarInt(playerid,"SONO") <= 10 && GetPVarInt(playerid,"SONO") > 5)
        {
                
SendClientMessage(playerid,-1,"[!] Vocк estб com muito sono, se nгo dormir poderб desmaiar.");
                
SetPlayerDrunkLevel(playerid4000);
        }
        if(
GetPVarInt(playerid,"SONO") <= 0)
        {
                
SetPlayerDrunkLevel(playerid0);
                
ApplyAnimation(playerid,"CRACK","crckdeth4",4.0,0,0,0,1,0);
                
KillTimer(ContagemSono[playerid]);
                
SendClientMessage(playerid,0xDCDCDCFF,"[!] Vocк adormeceu por excesso de sono...");
                
SetTimerEx("AcordarDes"10000false"i"playerid);
                
TogglePlayerControllable(playeridfalse);
        }
        return 
1;

PHP код:
E:\David Baptista\Jogos\Play Life RP\pawno\include\YSI\y_iterate.inc(909) : warning 202number of arguments does not match definition
E
:\David Baptista\Jogos\Play Life RP\pawno\include\YSI\y_iterate.inc(922) : error 025: function heading differs from prototype
E
:\David Baptista\Jogos\Play Life RP\gamemodes\fomesedesono.pwn(111) : warning 209: function "Itter_OnPlayerDisconnect" should return a value
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase 
Reply
#2

A funзгo Itter_OnPlayerDisconnect nгo retorna um valor, e vocк tentou obter o valor retornado por ela.

E a funзгo dб linha 922 й diferente da definiзгo(forward).

#Edit

Me enganei. Os erros estгo sendo gerados na include y_iterate. Vocк provavelmente fez uma utilizaзгo errada dessa include.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)