where to put ?
#1

Where can i put that new Gate;

For Example

If i make it under #include <a_samp> It doesn't work

And i cleared all my filterscripts does those scripts affect that ?

I have another Error

C:\Users\zero\Desktop\SAMP Server\gamemodes\Test.pwn(286) : error 017: undefined symbol "cmd"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.


Code: if (strcmp(cmd, "/opengate", true) == 0){

MoveObject(Gate, 2464.3999, -1668.59998, 14, 1);
//Low Speed

SendClientMessage(playerid, 0xAFAFAFAA, "The Gate Has Been Moved");
return 1;
}
Reply
#2

What? Please explain more on what you want to do. What doesn't work?

I assume you mean like creating an object (gate) and store the objectid to the Gate? Under includes is fine as it's declared as global variable.
Reply
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
What? Please explain more on what you want to do. What doesn't work?

I assume you mean like creating an object (gate) and store the objectid to the Gate? Under includes is fine as it's declared as global variable.
I want to know why when i make new MyPickup; It doesn;t work here is the code

C:\Users\zero\Desktop\SAMP Server\gamemodes\Test.pwn(475) : warning 203: symbol is never used: "MyPickup"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.

I made it under A_Samp


I also have another Question

How can i move gate only if i am in range ?
Reply
#4

Try this:
Код:
new Pickup;
Reply
#5

There's a difference between 'doesn't work' and 'compiled with a warning'.

If you use that variable somewhere, then it will not be shown anymore.
Reply
#6

Code :

pawn Код:
#include a_samp

public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/opengate", true))
{
MoveObject(Gate, 2464.3999, -1668.59998, 14, 1);
//Low Speed
}
SendClientMessage(playerid, 0xAFAFAFAA, "The Gate Has Been Moved");
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)