WakeUp
Компетентный
Здравствуйте пользователи форума.
Помогите мне исправить командочку...
Вот сами ошибки:
Вот сама команда:
Помогите мне исправить командочку...
Вот сами ошибки:
PHP:
C:\Documents and Settings\Андрей\Рабочий стол\Paradise\gamemodes\Paradise.pwn(27364) : error 012: invalid function call, not a valid address
C:\Documents and Settings\Андрей\Рабочий стол\Paradise\gamemodes\Paradise.pwn(27364) : warning 215: expression has no effect
C:\Documents and Settings\Андрей\Рабочий стол\Paradise\gamemodes\Paradise.pwn(27364) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Андрей\Рабочий стол\Paradise\gamemodes\Paradise.pwn(27364) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Андрей\Рабочий стол\Paradise\gamemodes\Paradise.pwn(27364) : 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:
if(strcmp(cmd, "/spec", true) == 0)
{
if(!IsPlayerConnected(playerid)) return true;
if(PlayerInfo[playerid][pAdmin] < 1) return true;
if(GetPVarInt(playerid, "SpecBool") == 1) return SendClientMessage(playerid, COLOR_LIGHTRED, "Вы за кем-то уже наблюдаете!");
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "Введите: /spec [id игрока]");
giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(!IsPlayerConnected(giveplayerid)) return true;
if(giveplayerid == playerid) return SendClientMessage(playerid, COLOR_LIGHTRED, "Вы не можете наблюдать за собой!");
new Float:Pos[4];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
GetPlayerFacingAngle(playerid, Pos[3]);
SetPVarInt(playerid, "SpecBool", 1);
SetPVarFloat(playerid, "SpecX", Pos[0]);
SetPVarFloat(playerid, "SpecY", Pos[1]);
SetPVarFloat(playerid, "SpecZ", Pos[2]);
SetPVarFloat(playerid, "SpecF", Pos[3]);
SetPVarInt(playerid, "SpecInt", GetPlayerInterior(playerid));
SetPVarInt(playerid, "SpecWorld", GetPlayerVirtualWorld(playerid));
if(IsPlayerInAnyVehicle(giveplayerid)) PlayerSpectateVehicle(playerid, GetPlayerVehicleID(giveplayerid));
else PlayerSpectatePlayer(playerid, giveplayerid);
SetPlayerInterior(playerid, GetPlayerInterior(giveplayerid));
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(giveplayerid));
TogglePlayerSpectating(playerid, true);
return SendClientMessage(playerid, COLOR_ORANGE, "Наблюдение за: %s (ID: %d)", sendername(giveplayerid), giveplayerid);
}
