where to put ? - 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: where to put ? (
/showthread.php?tid=475910)
where to put ? -
Le3aT - 15.11.2013
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;
}
Re: where to put ? -
Konstantinos - 15.11.2013
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.
Re: where to put ? -
Le3aT - 15.11.2013
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 ?
Re: where to put ? -
Tuntun - 15.11.2013
Try this:
Re: where to put ? -
Konstantinos - 15.11.2013
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.
Re: where to put ? -
Giroud12 - 15.11.2013
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;
}