Код:
gate =CreateObject(980, 342.88699, -88.34242, 3.19811, 0.00000, 0.00000, 90.09744);
public OnPlayerUpdate(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0 ,337.6696,-85.6017,1.3999,270.1467))//example 898.536437,2088.507324,10.820312)) 5.0 is size of range
{
MoveObject(gate,980, 342.88699, -88.34242, 3.19811,2.5);//then,,gate was closed
return 1;
}
}
forward gate(playerid);
public gate(playerid)
{
MoveObject(gate, 980, 342.88699, -88.34242, -2.46468,,2.5);//2.5 is speed
return 1;
}
Код:
D:\Games\LOF\Life of Flying 0.3x\gamemodes\Test.pwn(13) : error 001: expected token: ";", but found "-identifier-"
D:\Games\LOF\Life of Flying 0.3x\gamemodes\Test.pwn(188) : error 010: invalid function or declaration
D:\Games\LOF\Life of Flying 0.3x\gamemodes\Test.pwn(192) : warning 202: number of arguments does not match definition
D:\Games\LOF\Life of Flying 0.3x\gamemodes\Test.pwn(194) : error 029: invalid expression, assumed zero
D:\Games\LOF\Life of Flying 0.3x\gamemodes\Test.pwn(194) : warning 215: expression has no effect
D:\Games\LOF\Life of Flying 0.3x\gamemodes\Test.pwn(194) : warning 215: expression has no effect
D:\Games\LOF\Life of Flying 0.3x\gamemodes\Test.pwn(194) : warning 215: expression has no effect
D:\Games\LOF\Life of Flying 0.3x\gamemodes\Test.pwn(194) : warning 215: expression has no effect
D:\Games\LOF\Life of Flying 0.3x\gamemodes\Test.pwn(194) : warning 215: expression has no effect
D:\Games\LOF\Life of Flying 0.3x\gamemodes\Test.pwn(194) : error 001: expected token: ";", but found ")"
D:\Games\LOF\Life of Flying 0.3x\gamemodes\Test.pwn(194) : error 029: invalid expression, assumed zero
D:\Games\LOF\Life of Flying 0.3x\gamemodes\Test.pwn(194) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
6 Errors.
pawn Код:
MoveObject(gate, 980, 342.88699, -88.34242, -2.46468,2.5);//2.5 is speed
Can i have explain like where i take the script i mean should i take it to OnGameModeInt or?