On public OnFilterScriptInit() not work
#1

OKay i use AddStaticVehicle under OnFilterScriptInit why the car not show up?
Reply
#2

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 ^^)
Reply
#3

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);
Reply
#4

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) )
Reply
#5

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;
}
Reply
#6

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

Do you even have
pawn Код:
#define filterscript
Reply
#8

Quote:
Originally Posted by [MG]Dimi
Посмотреть сообщение
Do you even have
pawn Код:
#define filterscript
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)