maksim21
Дебютант
C:\Users\Àäìèíèñòðàòîð\Desktop\samps\Íîâàÿ ïàïêà (9)\gamemodes\rs-rpg.pwn(69056) : error 021: symbol already defined: "OnPlayerUpdate"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
PHP:
}
public OnPlayerUpdate(playerid)
{
new animlib[32];
new animname[32];
if(Meshok[playerid] == 1)
{
GetAnimationName(GetPlayerAnimationIndex(playerid),animlib,32,animname,32);
if(strcmp(animname, "IDLE_STANCE", true) != 0 && strcmp(animname, "RUN_CIVI", true) != 0 && strcmp(animname, "WALK_CIVI", true) != 0 && strcmp(animname, "crry_prtial", true) != 0 && strcmp(animname, "SPRINT_PANIC", true) != 0 && strcmp(animname, "RUN_PLAYER", true) != 0 && strcmp(animname, "WALK_PLAYER", true) != 0 && strcmp(animname, "SPRINT_CIVI", true) != 0)
{
Meshok[playerid] = 0;
SendClientMessage(playerid, COLOR_RED, "Âû óðîíèëè ìåøîê!");
if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);
ApplyAnimation(playerid,"PED","IDLE_tired",4.1,0,1,1,0,1);
SetPlayerCheckpoint(playerid,2230.8132324219,-2285.7043457031,13.531787872314,2.0);
}
}
new i = playerid;
if(GetPVarInt(playerid, "laser"))
{
RemovePlayerAttachedObject(playerid, 0);
if(IsPlayerInAnyVehicle(playerid)) return 1;
switch (GetPlayerWeapon(playerid))
{
case 22:
{
if(IsPlayerAiming(playerid))
{
if(GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK)
{
SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6, 0.108249, 0.030232, 0.118051, 1.468254, 350.512573, 364.284240);
}
else
{
SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6, 0.108249, 0.030232, 0.118051, 1.468254, 349.862579, 364.784240);
}
}
else
{
if(GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK)
{
SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6, 0.078248, 0.027239, 0.113051, -11.131746, 350.602722, 362.384216);
}
else
{
SetPlayerAttachedObject(playerid, 0, GetPVarInt(playerid, "color"), 6, 0.078248, 0.027239, 0.113051, -11.131746, 350.602722, 362.384216);
}
}
}
Последнее редактирование:
