28.06.2014, 12:57
I get these errors:
Please help, these are the lines:
1649:
Full code for line 1649:
Line 17950:
Код:
C:\Users\Cretu\Downloads\GTA SA\Server Fri CnR\gamemodes\FriCNR.pwn(1649) : error 017: undefined symbol "Player" C:\Users\Cretu\Downloads\GTA SA\Server Fri CnR\gamemodes\FriCNR.pwn(17950) : error 017: undefined symbol "PRESSED" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
1649:
pawn Код:
if(Player == id) continue;
pawn Код:
stock Arrest(playerid, i = -1)
{
new Float:x, Float:y, Float:z, Float:hp;
if(i != -1)
{
GetPlayerPos(i, x, y, z);
GetPlayerHealth(i, hp);
if(hp < 0.0 || !IsPlayerInRangeOfPoint(playerid, 5.0, x, y, z) || GetPlayerInterior(playerid) != GetPlayerInterior(i) || GetPlayerVirtualWorld(playerid) != GetPlayerVirtualWorld(i) || GetPlayerWantedLevel(i) < 4 || IsPlayerInAnyVehicle(i) != 0 || IsOnduty{i} != 0 || IsAtEvent{i} != 0 || HasBeenArrested{i} == true) return SendClientMessage(playerid, RED, "Player cannot be arrested");
}
else if(i == -1)
{
foreach(Player, id)
{
if(Player == id) continue;
GetPlayerPos(id, x, y, z);
GetPlayerHealth(id, hp);
if(hp == 0.0 || !IsPlayerInRangeOfPoint(playerid, 5.0, x, y, z) || GetPlayerInterior(playerid) != GetPlayerInterior(id) || GetPlayerVirtualWorld(playerid) != GetPlayerVirtualWorld(id) || GetPlayerWantedLevel(id) < 4 || IsPlayerInAnyVehicle(id) != 0 || IsOnduty{id} != 0 || IsAtEvent{id} != 0 || HasBeenArrested{id} == true) continue;
i = id;
break;
}
if(i == -1) return SendClientMessage(playerid, RED, "No wanted players in range.");
}
pawn Код:
if(GetTeam{playerid} != CLASS_CIV && GetTeam{playerid} != CLASS_MEDIC && PRESSED(KEY_SUBMISSION)) Arrest(playerid);