29.06.2012, 21:27
PHP код:
D:\Scripturi samp\HardRP\gamemodes\larp.pwn(36734) : error 017: undefined symbol "VehRadarID"
D:\Scripturi samp\HardRP\gamemodes\larp.pwn(36734) : warning 215: expression has no effect
D:\Scripturi samp\HardRP\gamemodes\larp.pwn(36734) : error 001: expected token: ";", but found ")"
D:\Scripturi samp\HardRP\gamemodes\larp.pwn(36734) : error 029: invalid expression, assumed zero
D:\Scripturi samp\HardRP\gamemodes\larp.pwn(36734) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
PHP код:
//-------------------------------=[radar]=---------------------------------------
if(strcmp(cmd, "/puneradar", true) == 0 || strcmp(cmd, "/pnr", true) == 0)
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
{
if (IsPlayerInAnyVehicle (playerid))
{
new vehid = GetPlayerVehicleID (playerid);
if (VehRadarID [vehid] > -1) return 1;
new Float: x, Float: y, Float: z, Float: a;
GetVehiclePos (vehid, x, y, z);
GetVehicleZAngle (vehid, a);
SendClientMessage (playerid, COLOR_YELLOW, "Radar has been added successfully.");
VehRadarID [vehid] = CreateObject (367, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 300.0);
AttachObjectToVehicle (VehRadarID [vehid], vehid, 0.2, 0.50, 0.3, 0.0, 0.0, 90.0);
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerInVehicle (i, vehid))
{
TextDrawShowForPlayer (i, RadarHud);
}
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD3, "Nu faci parte din PD/FBI/NG!");
}
return 1;
}
}