17.06.2015, 20:26
WARNING 209
ERROR 025
PHP код:
108 public OnPlayerDisconnect(playerid)
109 {
110 SaveDVFOMESEDESONO(playerid);
111 }
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