[Tutorial] Moving Objects
#21

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)
    {
Reply
#22

Nice man
Reply
#23

Nice job!
Reply
#24

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)