SA-MP Forums Archive
[Tutorial] Moving Objects - 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)
+---- Forum: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] Moving Objects (/showthread.php?tid=195131)

Pages: 1 2


Re: Moving Objects - SkizzoTrick - 06.02.2011

Quote:
Originally Posted by antonio112
View Post
How can I make ... multiple commands in a single command?

I`ll give you an example: Let`s say I want to open a gate with /opengate and /og aswell ... do I have to make 2 separate commands for this?

Later Edit: I found how to do it, thanks anyway.
No,just do this:
pawn Code:
if(strcmp(cmd, "/og", true) == 0 || strcmp(cmd, "/opengate", true) == 0)
    {



Re: Moving Objects - [M.A]Angel[M.A] - 21.02.2011

Nice man


Re: Moving Objects - boslosos - 13.05.2015

Nice job!


Re: Moving Objects - Mitchyjones - 18.08.2016

Quote:
Originally Posted by Sweet_Mafia™
View Post
I pasted in the stuff you gave and i get these errors, could you possibly send me all your includes?

Code:
C:\Users\Sweet Mafia.Admin-HP\Desktop\Untitled.pwn(12) : error 001: expected token: ",", but found "."
C:\Users\Sweet Mafia.Admin-HP\Desktop\Untitled.pwn(12) : error 029: invalid expression, assumed zero
C:\Users\Sweet Mafia.Admin-HP\Desktop\Untitled.pwn(12) : warning 215: expression has no effect
C:\Users\Sweet Mafia.Admin-HP\Desktop\Untitled.pwn(12) : error 001: expected token: ";", but found ")"
C:\Users\Sweet Mafia.Admin-HP\Desktop\Untitled.pwn(12) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
This just means you have something spelt wrong or you have missed something out, post Line 12 for me.