Ошибка
cs_hns_sts.sp(184) : error 033: array must be indexed (variable "Origin")
Code
public Propi(i)
{
if(NoWalkClient(i) && IsPlayerAlive(i))
{
new index = CreateEntityByName("prop_dynamic_override");
if (index > 0)
{
new Float:Angles[3], Float:Origin[3];
GetClientAbsOrigin(i, Origin)
GetClientEyeAngles(i, Angles)
Angles[0] = 0.0;
Angles[2] = 0.0;
if (Origin && Angles != OldOrigin[i] && OldAngles[i]) // тут error 033: array must be indexed (variable "Origin")
{
GetClientAbsOrigin(i, OldOrigin[i])
GetClientEyeAngles(i, OldAngles[i])
OldAngles[i][0] = 0.0;
OldAngles[i][2] = 0.0;
SetEntityRenderColor(i, 0, 0, 0, 0);
decl String:model[255];
GetClientModel(i, model, sizeof(model));
DispatchKeyValueVector(index, "origin", Origin);
DispatchKeyValueVector(index, "angles", Angles);
DispatchKeyValue(index, "model", model);
DispatchKeyValue(index, "solid", "0");
DispatchSpawn(index);
modelsid[i] = index
g_CoverOnThePlayer[i] = true;
}
}
}
}
Исходник
http://rghost.ru/37226793