19.08.2014, 19:35
(
Последний раз редактировалось noamch1997; 19.08.2014 в 20:21.
)
pawn Код:
new bool: gMoveObjects;
new bool: MoveObjects;
forward MoveObjects(index); //line 4675 ****************************
public MoveObjects(index)
{
new Float: X, Float: Y, Float: Z;
GetObjectPos(1608, 821.84656, -2044.69141, 15.45633);
for(new i; i != MAX_PLAYERS; ++i)
{
if(IsPlayerInRangeOfPoint(i, 30.0, 821.84656, -2044.69141, 15.45633))
{
static time;
switch(index %= 6)
{
case 0: time = MoveObject(objectid, 821.84656, -2044.69141, 15.45633, 3);
case 1: time = MoveObject(objectid, 823.4802, -2071.3523, 15.4563, 4);
case 2: time = MoveObject(objectid, 821.5845, -2072.7134, 15.6320, 5);
case 3: time = MoveObject(objectid, 835.9559, -2088.6130, 15.6320, 6);
case 4: time = MoveObject(objectid, 844.3004, -2084.1091, 16.0045, 7);
case 5: time = MoveObject(objectid, 849.3589, -2059.7637, 15.6320, 8);
}
++index;
SetTimerEx("MoveObjects",time+150,false,"i",index);
return ;
}
}
gMoveObjects = false;
}
Quote:
(4675) : error 029: invalid expression, assumed zero (4675) : error 012: invalid function call, not a valid address (4675) : error 017: undefined symbol "index" (4675) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |