SA-MP Forums Archive
Gate problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Gate problem (/showthread.php?tid=441343)



Gate problem - Tuntun - 02.06.2013

What happen with this:

Код:
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;
}
I also used new and define but that error:

Код:
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.



Re: Gate problem - Gamer_007 - 02.06.2013

pawn Код:
MoveObject(gate, 980, 342.88699, -88.34242, -2.46468,2.5);//2.5 is speed
You were having 2 comas.


Re: Gate problem - Tuntun - 02.06.2013

Can i have explain like where i take the script i mean should i take it to OnGameModeInt or?