11.08.2010, 23:07
Heres The Cmd That Its Giving Errors On
}
if(strcmp(cmd, "/afiredutypos", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 20)
{
new Float
,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
new Float:angle;
GetPlayerFacingAngle(playerid, angle);
FireDutyPosition[X] = x;
FireDutyPosition[Y] = y;
FireDutyPosition[Z] = z;
FireDutyPosition[World] = GetPlayerVirtualWorld(playerid);
FireDutyPosition[Interior] = GetPlayerInterior(playerid);
FireDutyPosition[Angle] = angle;
SaveFireDutyPosition();
SendClientMessage(playerid, COLOR_ADMINCMD, "(INFO) You have successfully set the Fire Duty Position");
}
else
{
SendClientMessage(playerid, COLOR_GREY, "(ERROR) You are not authorized to use that command");
}
return 1;
}
}
if(strcmp(cmd, "/afiredutypos", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 20)
{
new Float
,Float:y,Float:z;GetPlayerPos(playerid, x, y, z);
new Float:angle;
GetPlayerFacingAngle(playerid, angle);
FireDutyPosition[X] = x;
FireDutyPosition[Y] = y;
FireDutyPosition[Z] = z;
FireDutyPosition[World] = GetPlayerVirtualWorld(playerid);
FireDutyPosition[Interior] = GetPlayerInterior(playerid);
FireDutyPosition[Angle] = angle;
SaveFireDutyPosition();
SendClientMessage(playerid, COLOR_ADMINCMD, "(INFO) You have successfully set the Fire Duty Position");
}
else
{
SendClientMessage(playerid, COLOR_GREY, "(ERROR) You are not authorized to use that command");
}
return 1;
}
