07.08.2010, 12:55
(
Последний раз редактировалось Rolyy; 07.08.2010 в 22:45.
)
The 2 First warning, I actually don't know what to do with.
I can fix the last one by my own.
NOTE: LOL is changed into DynamicCPMAX
I can fix the last one by my own.
NOTE: LOL is changed into DynamicCPMAX
Код:
C:\Users\...\Desktop\...\gamemodes\Teamdm.pwn(1764) : warning 235: public function lacks forward declaration (symbol "OnPlayerEnterDynamicCP") C:\Users\...\Desktop\...\gamemodes\Teamdm.pwn(1781) : warning 235: public function lacks forward declaration (symbol "OnPlayerExitDynamicCP") C:\Users\...\Desktop\...\gamemodes\Teamdm.pwn(1799) : warning 209: function "OnPlayerExitDynamicCP" should return a value Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Warnings.
pawn Код:
new DynamicCPMAX[MAX_PLAYERS];
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == EnterAmmunation)
{
DynamicCPMAX[playerid] = 1;
}
else if(checkpointid == EnterAmmunation1)
{
DynamicCPMAX[playerid] = 2;
}
else if(checkpointid == EnterAmmunation2)
{
DynamicCPMAX[playerid] = 3;
}
return 1;
}
public OnPlayerExitDynamicCP(playerid, checkpointid)
{
if(checkpointid == ExitAmmunation)
{
if(DynamicCPMAX[playerid] == 1)
{
SetPlayerPos(...);
}
else if(DynamicCPMAX[playerid] == 2)
{
SetPlayerPos(...);
}
else if(DynamicCPMAX[playerid] == 3)
{
SetPlayerPos(...);
}
return 1;
}
}