What am I doing wrong? - 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: What am I doing wrong? (
/showthread.php?tid=439679)
What am I doing wrong? -
kokoshkata - 26.05.2013
SOLVED!
Re: What am I doing wrong? -
Vince - 26.05.2013
Did you actually compile the script?
Re: What am I doing wrong? -
jordy.kiesebrink - 26.05.2013
pawn Код:
#include <a_samp>
public OnFilterScriptInit() {
CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance);
}
Compile > be sure its in filterscript > be sure its in your server.cfg > run your server
Re: What am I doing wrong? -
kokoshkata - 26.05.2013
Yes, I did. Here, take a look how my FS looks like;
Re: What am I doing wrong? -
Vince - 26.05.2013
Uncomment line 3.
Re: What am I doing wrong? -
Pottus - 26.05.2013
He doesn't even need
#define FILTERSCRIPT
#if defined FILTERSCRIPT
#endif
Can remove all those lines
Re: What am I doing wrong? -
jordy.kiesebrink - 26.05.2013
Just use what I told you to,
Indeed don't define! Just include a_samp, then open your OnFilterScriptInit.
And then you objects like you did now, close the init > compile > run.
* In this case you are checking if it is defined but.. you didnt (becouse you commented #define filterscript)
So it would ignore everything under that line (if defined)
Re: What am I doing wrong? -
kokoshkata - 26.05.2013
It works, thank you alot!
Re: What am I doing wrong? -
jordy.kiesebrink - 26.05.2013
No problem