27.01.2013, 15:07
i made this scripts but it dont work some one please help me.
#include <a_samp>
#define FILTERSCRIPT
new Gate1
public OnFilterScriptInit()
{
Gate1 = CreateObject(object 980, 2497.6499, 2773.2900, 12.5600, 0.0000, 0.0000, 90.0000, 100.0);// I am not sure if I know the last one
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/opengate", true)){
if(IsPlayerInRangeOfPoint(playerid, 15.0, 2497.6499, 2773.2900, 12.5600)){ //You MUST add the original pos defined in step 6
MoveObject(LSPDGate, 2497.6499, 2773.2900, 6.9000, 0.0000, 0.0000, 90.0000 0.0); // dunno the last one
return 1;
}
}
else if(strcmp(cmdtext, "/closegate", true)){
if(IsPlayerInRangeOfPoint(playerid, 15.0, 2497.6499, 2773.2900, 12.5600)){
MoveObject(LSPDGate, 2497.6499, 2773.2900, 12.5600 3.0, 0.0000, 0.0000, 90.0000);
return 1;
}
}
return 0;
}
public OnFilterScriptExit()
{
return 1;
}
it just says![Huh?](images/smilies/confused.gif)
![Huh?](images/smilies/confused.gif)
![Huh?](images/smilies/confused.gif)
![Huh?](images/smilies/confused.gif)
![Huh?](images/smilies/confused.gif)
![Huh?](images/smilies/confused.gif)
![Huh?](images/smilies/confused.gif)
![Huh?](images/smilies/confused.gif)
![Huh?](images/smilies/confused.gif)
![Huh?](images/smilies/confused.gif)
![Huh?](images/smilies/confused.gif)
![Huh?](images/smilies/confused.gif)
?
C:\Users\Dan\Desktop\New Folder\filterscripts\Gate1.pwn(7) : error 001: expected token: ";", but found "public"
C:\Users\Dan\Desktop\New Folder\filterscripts\Gate1.pwn(9) : error 017: undefined symbol "object"
C:\Users\Dan\Desktop\New Folder\filterscripts\Gate1.pwn(9) : warning 215: expression has no effect
C:\Users\Dan\Desktop\New Folder\filterscripts\Gate1.pwn(9) : warning 215: expression has no effect
C:\Users\Dan\Desktop\New Folder\filterscripts\Gate1.pwn(9) : warning 215: expression has no effect
C:\Users\Dan\Desktop\New Folder\filterscripts\Gate1.pwn(9) : warning 215: expression has no effect
C:\Users\Dan\Desktop\New Folder\filterscripts\Gate1.pwn(9) : warning 215: expression has no effect
C:\Users\Dan\Desktop\New Folder\filterscripts\Gate1.pwn(9) : warning 215: expression has no effect
C:\Users\Dan\Desktop\New Folder\filterscripts\Gate1.pwn(9) : warning 215: expression has no effect
C:\Users\Dan\Desktop\New Folder\filterscripts\Gate1.pwn(9) : warning 215: expression has no effect
C:\Users\Dan\Desktop\New Folder\filterscripts\Gate1.pwn(9) : error 001: expected token: ";", but found ")"
C:\Users\Dan\Desktop\New Folder\filterscripts\Gate1.pwn(9) : error 029: invalid expression, assumed zero
C:\Users\Dan\Desktop\New Folder\filterscripts\Gate1.pwn(9) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
#include <a_samp>
#define FILTERSCRIPT
new Gate1
public OnFilterScriptInit()
{
Gate1 = CreateObject(object 980, 2497.6499, 2773.2900, 12.5600, 0.0000, 0.0000, 90.0000, 100.0);// I am not sure if I know the last one
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/opengate", true)){
if(IsPlayerInRangeOfPoint(playerid, 15.0, 2497.6499, 2773.2900, 12.5600)){ //You MUST add the original pos defined in step 6
MoveObject(LSPDGate, 2497.6499, 2773.2900, 6.9000, 0.0000, 0.0000, 90.0000 0.0); // dunno the last one
return 1;
}
}
else if(strcmp(cmdtext, "/closegate", true)){
if(IsPlayerInRangeOfPoint(playerid, 15.0, 2497.6499, 2773.2900, 12.5600)){
MoveObject(LSPDGate, 2497.6499, 2773.2900, 12.5600 3.0, 0.0000, 0.0000, 90.0000);
return 1;
}
}
return 0;
}
public OnFilterScriptExit()
{
return 1;
}
it just says
![Huh?](images/smilies/confused.gif)
![Huh?](images/smilies/confused.gif)
![Huh?](images/smilies/confused.gif)
![Huh?](images/smilies/confused.gif)
![Huh?](images/smilies/confused.gif)
![Huh?](images/smilies/confused.gif)
![Huh?](images/smilies/confused.gif)
![Huh?](images/smilies/confused.gif)
![Huh?](images/smilies/confused.gif)
![Huh?](images/smilies/confused.gif)
![Huh?](images/smilies/confused.gif)
![Huh?](images/smilies/confused.gif)
![Huh?](images/smilies/confused.gif)
C:\Users\Dan\Desktop\New Folder\filterscripts\Gate1.pwn(7) : error 001: expected token: ";", but found "public"
C:\Users\Dan\Desktop\New Folder\filterscripts\Gate1.pwn(9) : error 017: undefined symbol "object"
C:\Users\Dan\Desktop\New Folder\filterscripts\Gate1.pwn(9) : warning 215: expression has no effect
C:\Users\Dan\Desktop\New Folder\filterscripts\Gate1.pwn(9) : warning 215: expression has no effect
C:\Users\Dan\Desktop\New Folder\filterscripts\Gate1.pwn(9) : warning 215: expression has no effect
C:\Users\Dan\Desktop\New Folder\filterscripts\Gate1.pwn(9) : warning 215: expression has no effect
C:\Users\Dan\Desktop\New Folder\filterscripts\Gate1.pwn(9) : warning 215: expression has no effect
C:\Users\Dan\Desktop\New Folder\filterscripts\Gate1.pwn(9) : warning 215: expression has no effect
C:\Users\Dan\Desktop\New Folder\filterscripts\Gate1.pwn(9) : warning 215: expression has no effect
C:\Users\Dan\Desktop\New Folder\filterscripts\Gate1.pwn(9) : warning 215: expression has no effect
C:\Users\Dan\Desktop\New Folder\filterscripts\Gate1.pwn(9) : error 001: expected token: ";", but found ")"
C:\Users\Dan\Desktop\New Folder\filterscripts\Gate1.pwn(9) : error 029: invalid expression, assumed zero
C:\Users\Dan\Desktop\New Folder\filterscripts\Gate1.pwn(9) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.