22.11.2011, 12:25
This is the error:
error 091: ambiguous constant; tag override is required (symbol "X")
Thanks in Advance!
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.0, playerid,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(playerid, 24, 70);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 41, 700);
CopOnDuty[playerid] = 1;
SetPlayerToFactionSkin(playerid);
SetPlayerToFactionColor(playerid);
format(string, sizeof(string), "[FBI:] %s is now an on duty.",GetPlayerNameEx(playerid));
SendFactionTypeMessage(1, COLOR_LSPD, string);
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(playerid, COLOR_LIGHTYELLOW2, "[ERROR:] You are not at the duty position!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[ERROR:] Invalid Faction/Type.");
return 1;
}
}
return 1;
}