On public OnFilterScriptInit() not work - 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: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: On public OnFilterScriptInit() not work (
/showthread.php?tid=264182)
On public OnFilterScriptInit() not work -
Aizen - 25.06.2011
OKay i use AddStaticVehicle under OnFilterScriptInit why the car not show up?
Re: On public OnFilterScriptInit() not work -
Tachibana - 25.06.2011
Quote:
Originally Posted by Aizen
OKay i use AddStaticVehicle under OnFilterScriptInit why the car not show up?
|
Does it give any errors? or anything?
(show the code if possible ^^)
Re: On public OnFilterScriptInit() not work -
Aizen - 25.06.2011
Well this is the code
Код:
public OnFilterScriptInit()
{
AddStaticVehicle(566,927.59979248,-994.80096436,38.15589142,96.00000000,0,0);
AddStaticVehicle(579,920.94323730,-995.81854248,38.33947754,100.00000000,0,0);
AddStaticVehicle(579,921.86877441,-1000.89636230,38.26678085,98.00000000,0,0);
Re: On public OnFilterScriptInit() not work -
Tachibana - 25.06.2011
Quote:
Originally Posted by Aizen
Well this is the code
Код:
public OnFilterScriptInit()
{
AddStaticVehicle(566,927.59979248,-994.80096436,38.15589142,96.00000000,0,0);
AddStaticVehicle(579,920.94323730,-995.81854248,38.33947754,100.00000000,0,0);
AddStaticVehicle(579,921.86877441,-1000.89636230,38.26678085,98.00000000,0,0);
|
I have totally no idea :O
Try putting them into ur GM in OnGameModeInit ? (as well check if the FS loads! it might not load (check in the logs) )
Re: On public OnFilterScriptInit() not work -
xuxani - 25.06.2011
Aizen Try It...
Код:
public OnFilterScriptInit()
{
AddStaticVehicle(566,927.59979248,-994.80096436,38.15589142,96.00000000,0,0);
AddStaticVehicle(579,920.94323730,-995.81854248,38.33947754,100.00000000,0,0);
AddStaticVehicle(579,921.86877441,-1000.89636230,38.26678085,98.00000000,0,0);
return 1;
}
Re: On public OnFilterScriptInit() not work -
Tachibana - 25.06.2011
Quote:
Originally Posted by xuxani
Aizen Try It...
PHP код:
public OnFilterScriptInit()
{
AddStaticVehicle(566,927.59979248,-994.80096436,38.15589142,96.00000000,0,0);
AddStaticVehicle(579,920.94323730,-995.81854248,38.33947754,100.00000000,0,0);
AddStaticVehicle(579,921.86877441,-1000.89636230,38.26678085,98.00000000,0,0);
return 1;
}
|
Im sure he already has a return function since without it he would just get an error and the filterscript wouldnt load.
Re: On public OnFilterScriptInit() not work -
[MG]Dimi - 25.06.2011
Do you even have
Re: On public OnFilterScriptInit() not work -
[HiC]TheKiller - 25.06.2011
Quote:
Originally Posted by [MG]Dimi
|
He does not need that. That is used by the stock script so that the OnFilterScriptInit would not run if it was a gamemode. It's the same as doing this:
pawn Код:
#define hello
#if defined hello
//Code here will be executed because hello is defined.
#endif
Your idea could be plausible in a different way. If the person has that and didn't actually define it, the code wouldn't have ran.