Same interior on different location
#10

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

Код:
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;
    }
}
Reply


Messages In This Thread
Same interior on different location - by Rolyy - 07.08.2010, 10:47
Re: Same interior on different location - by ViruZZzZ_ChiLLL - 07.08.2010, 10:49
Re: Same interior on different location - by Rolyy - 07.08.2010, 10:51
Re: Same interior on different location - by ViruZZzZ_ChiLLL - 07.08.2010, 10:52
Re: Same interior on different location - by Rolyy - 07.08.2010, 10:59
Re: Same interior on different location - by Rolyy - 07.08.2010, 12:13
Re: Same interior on different location - by ViruZZzZ_ChiLLL - 07.08.2010, 12:20
Re: Same interior on different location - by Rolyy - 07.08.2010, 12:26
Re: Same interior on different location - by Claude - 07.08.2010, 12:27
Re: Same interior on different location - by Rolyy - 07.08.2010, 12:55

Forum Jump:


Users browsing this thread: 5 Guest(s)