#include <a_samp> new vgate; public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Blank Filterscript by your name here"); print("--------------------------------------\n"); vgate = CreateObject(971,2908.698974,2088.360351,12.570116,0.000000,0.000000,0.201737);//closed return 1; } if(strcmp(cmdtext,"/ovgate", true) == 0) { MoveObject(vgate, 2908.698974,2088.360351,5.949101, 1.500000); return 1; } } } if(strcmp(cmdtext,"/cvgate", true) == 0) { MoveObject(vgate, 2908.698974,2088.360351,12.570116, 1.500000); return 1; } } }
#include <a_samp>
new vgate;
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
vgate = CreateObject(971,2908.698974,2088.360351,12.570116,0.000000,0.000000,0.201737);//closed
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/ovgate", true) == 0)
{
MoveObject(vgate, 2908.698974,2088.360351,5.949101, 1.500000);
return 1;
}
if(strcmp(cmdtext,"/cvgate", true) == 0)
{
MoveObject(vgate, 2908.698974,2088.360351,12.570116, 1.500000);
return 1;
}
return 0;
}
It doesnt compile i get this error for lines 13 16 21 24
error 010: invalid function or declaration |
#include <a_samp>
new vgate;
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
vgate = CreateObject(971,2908.698974,2088.360351,12.570116,0.000000,0.000000,0.201737);//closed
return 1;
}
public OnPlayerCommandText(playerid,cmdtext[])
{
if(strcmp(cmdtext,"/ovgate", true) == 0)
{
MoveObject(vgate, 2908.698974,2088.360351,5.949101, 1.500000);
return 1;
}
if(strcmp(cmdtext,"/cvgate", true) == 0)
{
MoveObject(vgate, 2908.698974,2088.360351,12.570116, 1.500000);
return 1;
}
return 0;
}