Issue on public playerid
#1

C:\Documents and Settings\Owner\Desktop\03cCore\gamemodes\SRv95.pwn (1466) : error 017: undefined symbol "playerid"

Where the error is
Код:
SetPlayerMarkerForPlayer(ra, playerid, 0x2641FEAA);
Full code below
Код:
public BackupCheck()
{
    if(BackupCaller < 999)
    {
        if(IsPlayerConnected(BackupCaller))
        {
            new Float:X,Float:Y,Float:Z;
            GetPlayerPos(BackupCaller, X, Y, Z);
            for(new ra=0; ra<MAX_PLAYERS; ra++)
            {
                if(IsPlayerConnected(ra) && IsALawEnforcer(ra))
                {
                    SetPlayerMarkerForPlayer(ra, playerid, 0x2641FEAA);
                    //SetPlayerCheckpoint(ra,X,Y,Z,3);
                }
            }
            return 1;
        }
        else
        {
            BackupCaller = 999;
            for(new ra=0; ra<MAX_PLAYERS; ra++)
            {
                if(IsPlayerConnected(ra) && IsALawEnforcer(ra))
                {
                    SendClientMessage(ra, COLOR_GRAD1, "Officer needing backup is no longer in range..");
                   	SetPlayerToTeamColor(ra);
                    //DisablePlayerCheckpoint(ra);
                }
            }
            return 0;
        }
    }
    return 0;
}
Reply


Messages In This Thread
Issue on public playerid - by EdeniaGaming - 26.07.2011, 00:15
Re: Issue on public playerid - by =WoR=Varth - 26.07.2011, 00:24

Forum Jump:


Users browsing this thread: 1 Guest(s)