SA-MP Forums Archive
Need Help With Some Errors (Trying to Duplicate The Duty Pos) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need Help With Some Errors (Trying to Duplicate The Duty Pos) (/showthread.php?tid=167323)



Need Help With Some Errors (Trying to Duplicate The Duty Pos) - RichardSteinheimer - 11.08.2010

C:\Users\Richie\Desktop\New York Roleplay\gamemodes\nyrp.pwn(759) : warning 201: redefinition of constant/macro (symbol "pInfo")
C:\Users\Richie\Desktop\New York Roleplay\gamemodes\nyrp.pwn(1099) : error 020: invalid symbol name ""
C:\Users\Richie\Desktop\New York Roleplay\gamemodes\nyrp.pwn(1833) : warning 217: loose indentation
C:\Users\Richie\Desktop\New York Roleplay\gamemodes\nyrp.pwn(1834) : warning 217: loose indentation
C:\Users\Richie\Desktop\New York Roleplay\gamemodes\nyrp.pwn(297 : warning 217: loose indentation
C:\Users\Richie\Desktop\New York Roleplay\gamemodes\nyrp.pwn(3373) : warning 217: loose indentation
C:\Users\Richie\Desktop\New York Roleplay\gamemodes\nyrp.pwn(3386) : warning 217: loose indentation
C:\Users\Richie\Desktop\New York Roleplay\gamemodes\nyrp.pwn(3400) : warning 217: loose indentation
C:\Users\Richie\Desktop\New York Roleplay\gamemodes\nyrp.pwn(3825) : warning 213: tag mismatch
C:\Users\Richie\Desktop\New York Roleplay\gamemodes\nyrp.pwn(3826) : warning 213: tag mismatch
C:\Users\Richie\Desktop\New York Roleplay\gamemodes\nyrp.pwn(4869) : warning 217: loose indentation
C:\Users\Richie\Desktop\New York Roleplay\gamemodes\nyrp.pwn(4910) : warning 217: loose indentation
C:\Users\Richie\Desktop\New York Roleplay\gamemodes\nyrp.pwn(8607) : error 029: invalid expression, assumed zero
C:\Users\Richie\Desktop\New York Roleplay\gamemodes\nyrp.pwn(8607) : error 091: ambiguous constant; tag override is required (symbol "X")
C:\Users\Richie\Desktop\New York Roleplay\gamemodes\nyrp.pwn(8607) : error 029: invalid expression, assumed zero
C:\Users\Richie\Desktop\New York Roleplay\gamemodes\nyrp.pwn(8607) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.


Re: Need Help With Some Errors (Trying to Duplicate The Duty Pos) - RichardSteinheimer - 11.08.2010

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;
}