Secret_map
Дебютант
При компиляции
КОД :
PHP:
C:\Users\Вова\Desktop\GTA RP 0.9.1.1 [BETA]\gamemodes\gtarp.pwn(508) : warning 213: tag mismatch: expected tag none ("_"), but found "PInfo"
C:\Users\1\Desktop\GTA RP 0.9.1.1 [BETA]\gamemodes\gtarp.pwn(1085) : warning 213: tag mismatch: expected tag "PInfo", but found none ("_")
C:\Users\1\Desktop\GTA RP 0.9.1.1 [BETA]\gamemodes\gtarp.pwn(2980) : warning 213: tag mismatch: expected tag none ("_"), but found "PInfo"
C:\Users\1\Desktop\GTA RP 0.9.1.1 [BETA]\gamemodes\gtarp.pwn(2993) : warning 213: tag mismatch: expected tag none ("_"), but found "PInfo"
C:\Users\1\Desktop\GTA RP 0.9.1.1 [BETA]\gamemodes\gtarp.pwn(2996) : error 010: invalid function or declaration
C:\Users\1\Desktop\GTA RP 0.9.1.1 [BETA]\gamemodes\gtarp.pwn(3096) : warning 213: tag mismatch: expected tag none ("_"), but found "PInfo"
C:\Users\1\Desktop\GTA RP 0.9.1.1 [BETA]\gamemodes\gtarp.pwn(3097) : warning 213: tag mismatch: expected tag none ("_"), but found "PInfo"
C:\Users\1\Desktop\GTA RP 0.9.1.1 [BETA]\gamemodes\gtarp.pwn(3098) : warning 213: tag mismatch: expected tag none ("_"), but found "PInfo"
C:\Users\1\Desktop\GTA RP 0.9.1.1 [BETA]\gamemodes\gtarp.pwn(3102) : warning 213: tag mismatch: expected tag none ("_"), but found "PInfo"
C:\Users\1\Desktop\GTA RP 0.9.1.1 [BETA]\gamemodes\gtarp.pwn(3103) : warning 213: tag mismatch: expected tag none ("_"), but found "PInfo"
C:\Users\1\Desktop\GTA RP 0.9.1.1 [BETA]\gamemodes\gtarp.pwn(3104) : warning 213: tag mismatch: expected tag none ("_"), but found "PInfo"
C:\Users\1\Desktop\GTA RP 0.9.1.1 [BETA]\gamemodes\gtarp.pwn(3106) : warning 213: tag mismatch: expected tag none ("_"), but found "PInfo"
C:\Users\1\Desktop\GTA RP 0.9.1.1 [BETA]\gamemodes\gtarp.pwn(3107) : warning 213: tag mismatch: expected tag none ("_"), but found "PInfo"
C:\Users\1\Desktop\GTA RP 0.9.1.1 [BETA]\gamemodes\gtarp.pwn(3117) : warning 213: tag mismatch: expected tag "PInfo", but found "Float"
C:\Users\1\Desktop\GTA RP 0.9.1.1 [BETA]\gamemodes\gtarp.pwn(3119) : warning 213: tag mismatch: expected tag "PInfo", but found "Float"
C:\Users\1\Desktop\GTA RP 0.9.1.1 [BETA]\gamemodes\gtarp.pwn(3119) : warning 213: tag mismatch: expected tag "Float", but found "PInfo"
C:\Users\1\Desktop\GTA RP 0.9.1.1 [BETA]\gamemodes\gtarp.pwn(4223) : warning 217: loose indentation
Pawn compiler 3.10.8 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
PHP:
stock CancelFlyMode(playerid)
{
DeletePVar(playerid, "FlyMode");
CancelEdit(playerid);
TogglePlayerSpectating(playerid, false);
DestroyPlayerObject(playerid, noclipdata[playerid][flyobject]);
noclipdata[playerid][cameramode] = CAMERA_MODE_NONE;
return 1;
}
stock FlyMode(playerid)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
noclipdata[playerid][flyobject] = CreatePlayerObject(playerid, 19300, X, Y, Z, 0.0, 0.0, 0.0);
TogglePlayerSpectating(playerid, true);
AttachCameraToPlayerObject(playerid, noclipdata[playerid][flyobject]);
SetPVarInt(playerid, "FlyMode", 1);
noclipdata[playerid][cameramode] = CAMERA_MODE_FLY;
return 1;
}
stock GetMoveDirectionFromKeys(ud, lr)
{
new direction = 0;
if(lr < 0)
{
if(ud < 0) direction = MOVE_FORWARD_LEFT;
else if(ud > 0) direction = MOVE_BACK_LEFT;
else direction = MOVE_LEFT;
}
else if(lr > 0)
{
if(ud < 0) direction = MOVE_FORWARD_RIGHT;
else if(ud > 0) direction = MOVE_BACK_RIGHT;
else direction = MOVE_RIGHT;
}
else if(ud < 0) direction = MOVE_FORWARD;
else if(ud > 0) direction = MOVE_BACK;
return direction;
}
//--------------------------------------------------
stock MoveCamera(playerid)
{
new Float:FV[3], Float:CPR[3];
GetPlayerCameraPos(playerid, CPR[0], CPR[1], CPR[2]);
GetPlayerCameraFrontVector(playerid, FV[0], FV[1], FV[2]);
if(noclipdata[playerid][accelmul] <= 1) noclipdata[playerid][accelmul] += ACCEL_RATE;
new Float:speed = MOVE_SPEED * noclipdata[playerid][accelmul];
new Float:X, Float:Y, Float:Z;
GetNextCameraPosition(noclipdata[playerid][mode], CPR, FV, X, Y, Z);
MovePlayerObject(playerid, noclipdata[playerid][flyobject], X, Y, Z, speed);
noclipdata[playerid][lastmove] = GetTickCount();
return 1;
}
//--------------------------------------------------
//--------------------------------------------------
stock GetNextCameraPosition(move_mode, Float:CPR[3], Float:FV[3], &Float:X, &Float:Y, &Float:Z)
{
#define OFFSET_X (FV[0]*6000.0)
#define OFFSET_Y (FV[1]*6000.0)
#define OFFSET_Z (FV[2]*6000.0)
switch(move_mode)
{
case MOVE_FORWARD:
{
X = CPR[0]+OFFSET_X;
Y = CPR[1]+OFFSET_Y;
Z = CPR[2]+OFFSET_Z;
}
case MOVE_BACK:
{
X = CPR[0]-OFFSET_X;
Y = CPR[1]-OFFSET_Y;
Z = CPR[2]-OFFSET_Z;
}
case MOVE_LEFT:
{
X = CPR[0]-OFFSET_Y;
Y = CPR[1]+OFFSET_X;
Z = CPR[2];
}
case MOVE_RIGHT:
{
X = CPR[0]+OFFSET_Y;
Y = CPR[1]-OFFSET_X;
Z = CPR[2];
}
case MOVE_BACK_LEFT:
{
X = CPR[0]+(-OFFSET_X - OFFSET_Y);
Y = CPR[1]+(-OFFSET_Y + OFFSET_X);
Z = CPR[2]-OFFSET_Z;
}
case MOVE_BACK_RIGHT:
{
X = CPR[0]+(-OFFSET_X + OFFSET_Y);
Y = CPR[1]+(-OFFSET_Y - OFFSET_X);
Z = CPR[2]-OFFSET_Z;
}
case MOVE_FORWARD_LEFT:
{
X = CPR[0]+(OFFSET_X - OFFSET_Y);
Y = CPR[1]+(OFFSET_Y + OFFSET_X);
Z = CPR[2]+OFFSET_Z;
}
case MOVE_FORWARD_RIGHT:
{
X = CPR[0]+(OFFSET_X + OFFSET_Y);
Y = CPR[1]+(OFFSET_Y - OFFSET_X);
Z = CPR[2]+OFFSET_Z;
}
}
}
