[Ajuda] error 025 & Warning 209 - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] error 025 & Warning 209 (
/showthread.php?tid=578248)
error 025 & Warning 209 -
Portuga - 17.06.2015
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(PGSONO, GetPVarInt(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(playerid, 4000);
}
if(GetPVarInt(playerid,"SONO") <= 0)
{
SetPlayerDrunkLevel(playerid, 0);
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", 10000, false, "i", playerid);
TogglePlayerControllable(playerid, false);
}
return 1;
}
PHP код:
E:\David Baptista\Jogos\Play Life RP\pawno\include\YSI\y_iterate.inc(909) : warning 202: number 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 (c) 1997-2006, ITB CompuPhase
Re: error 025 & Warning 209 -
Dolby - 17.06.2015
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.