091 Error.
#1

This is the error:

error 091: ambiguous constant; tag override is required (symbol "X")

Thanks in Advance!
PHP код:
    if(strcmp(cmd"/fbiduty"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            if(
PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 2)
            {
                if (
PlayerToPoint(5.0playerid,fbidutyposition[X],fbidutyposition[Y],fbidutyposition[Z])) //This is the line that gives the error.
                
{
                    if(
GetPlayerVirtualWorld(playerid) == fbidutyposition[World])
                    {
                        if(
CopOnDuty[playerid] == 0)
                        {
                            if(
PlayerInfo[playerid][pSex] == 1)
                            {
                                
PlayerActionMessage(playerid,15.0,"clocks in , and takes his stuff from the locker.");
                            }
                            else
                            {
                                
PlayerActionMessage(playerid,15.0,"clocks in , and takes her stuff from the locker.");
                            }
                            
GivePlayerWeapon(playerid2470);
                            
GivePlayerWeapon(playerid30);
                            
GivePlayerWeapon(playerid41700);
                            
CopOnDuty[playerid] = 1;
                            
SetPlayerToFactionSkin(playerid);
                            
SetPlayerToFactionColor(playerid);
                            
format(stringsizeof(string), "[FBI:] %s is now an on duty.",GetPlayerNameEx(playerid));
                            
SendFactionTypeMessage(1COLOR_LSPDstring);
                            return 
1;
                        }
                        else
                        {
                              if(
PlayerInfo[playerid][pSex] == 1)
                            {
                                
PlayerActionMessage(playerid,15.0,"%s clocks out, and puts his stuff in the locker.");
                            }
                            else
                            {
                                
PlayerActionMessage(playerid,15.0,"%sclocks out, and puts her stuff in the locker.");
                            }
                            
ResetPlayerWeapons(playerid);
                            
CopOnDuty[playerid] = 0;
                            
SetPlayerToFactionSkin(playerid);
                            
SetPlayerToFactionColor(playerid);
                            return 
1;
                        }
                    }
                }
                else
                {
                    
SendClientMessage(playeridCOLOR_LIGHTYELLOW2"[ERROR:] You are not at the duty position!");
                    return 
1;
                }
            }
               else
            {
                
SendClientMessage(playeridCOLOR_LIGHTYELLOW2"[ERROR:] Invalid Faction/Type.");
                return 
1;
            }
        }
        return 
1;
    } 
Reply


Messages In This Thread
091 Error. - by remyguys - 22.11.2011, 12:25
Re: 091 Error. - by JaTochNietDan - 22.11.2011, 12:28
Re: 091 Error. - by remyguys - 22.11.2011, 12:48

Forum Jump:


Users browsing this thread: 1 Guest(s)