SA-MP Forums Archive
Error 21 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error 21 (/showthread.php?tid=570772)



Error 21 - Nightmares - 13.04.2015

Quote:

./includes/functions.pwn(5987) : error 021: symbol already defined: "SyncPlayerTime"
./includes/functions.pwn(5994) : error 021: symbol already defined: "SyncMinTime"
./includes/functions.pwn(21694) : warning 209: function "OnIsEmailPending" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.





Where the area is

Quote:

}

#if defined zombiemode
forward SyncPlayerTime(playerid);
public SyncPlayerTime(playerid)
{
if(zombieevent == 0) SetPlayerTime(playerid, hour, minuite);
else SetPlayerTime(playerid, 0, 0);
return 1;
}

forward SyncMinTime();
public SyncMinTime()
{
foreach(Player, i)
{
if(GetPlayerVirtualWorld(i) == 133769)
{
SetPlayerWeather(i, 45);
SetPlayerTime(i, 0, 0);
}
else
{
if(zombieevent == 0) SetPlayerTime(i, hour, minuite);
else SetPlayerTime(i, 0, 0);
}
}
return 1;
}
#endif
forward SyncPlayerTime(playerid);
public SyncPlayerTime(playerid)
{
SetPlayerTime(playerid, hour, minuite);
return 1;
}

forward SyncMinTime();
public SyncMinTime()
{
foreach(new i: Player)
{
if(GetPlayerVirtualWorld(i) == 133769)
{
SetPlayerWeather(i, 45);
SetPlayerTime(i, 0, 0);
}
else
{
SetPlayerTime(i, hour, minuite);
}
}
return 1;
}




Re: Error 21 - SequenceCuz - 13.04.2015

Delete those public once

cuz it meant what it said

"it already define!!!!"