#include <a_samp> new Gate; forward GateClose(playerid); // This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #define Filterscript #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" house gate's by Krisko_Milchev"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" house gate's by Krisko_Milchev"); print("----------------------------------\n"); } #endif public OnGameModeInit() { Gate =CreateObject(994, -767.1913, 92.0703,349.5082, 0, 0, 0, 0, 0, 0); CreateObject(994, -767.1913 ,92.0703, 349.5082, 0 , 0 ,0 , 0, 0, 0); CreateObject(994, -767.1913, 92.0703, 349.5082, 0, 0, 0, 0, 0, 0); return 1; } public OnGameModeExit() { return 1; } public GateClose(playerid) { DestroyObject(gate); gate = CreateObject(994, -767.1960, 92.0638, 266.4016, 0, 0, 0, 0, 0 , 0); return 1 } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext, "/gateopen", true)==0) { MoveObject(Gate,-767.1913,92.0703,349.5082,0,0,0,0,0,0); SendClientMessage(playerid, BLUE, "The house door has been opened please wait 10 seconds!"); SetTimer("GateClose1", 10000, 0); return 1; } |
D:\Нова папка (3)\samp02Xserver.win32\pawno\gatehaha.pwn(39) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\gatehaha.pwn(39) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\gatehaha.pwn(39) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\gatehaha.pwn(40) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\gatehaha.pwn(40) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\gatehaha.pwn(40) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\gatehaha.pwn(41) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\gatehaha.pwn(41) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\gatehaha.pwn(41) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\gatehaha.pwn(42) : warning 217: loose indentation D:\Нова папка (3)\samp02Xserver.win32\pawno\gatehaha.pwn(52) : error 017: undefined symbol "gate" D:\Нова папка (3)\samp02Xserver.win32\pawno\gatehaha.pwn(53) : error 017: undefined symbol "gate" D:\Нова папка (3)\samp02Xserver.win32\pawno\gatehaha.pwn(53) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\gatehaha.pwn(53) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\gatehaha.pwn(53) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\gatehaha.pwn(55) : error 001: expected token: ";", but found "}" D:\Нова папка (3)\samp02Xserver.win32\pawno\gatehaha.pwn(60) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\gatehaha.pwn(60) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\gatehaha.pwn(60) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\gatehaha.pwn(60) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\gatehaha.pwn(60) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\gatehaha.pwn(61) : error 017: undefined symbol "BLUE" D:\Нова папка (3)\samp02Xserver.win32\pawno\gatehaha.pwn(63) : warning 217: loose indentation D:\Нова папка (3)\samp02Xserver.win32\pawno\gatehaha.pwn(65) : error 030: compound statement not closed at the end of file (started at line 5 Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors. |
public GateClose(playerid)
{
DestroyObject(gate);
gate = CreateObject(994, -767.1960, 92.0638, 266.4016, 0, 0, 0, 0, 0 , 0);
}
:\Нова папка (3)\samp02Xserver.win32\pawno\asdfgh.pwn(43) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\asdfgh.pwn(43) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\asdfgh.pwn(43) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\asdfgh.pwn(44) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\asdfgh.pwn(44) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\asdfgh.pwn(44) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\asdfgh.pwn(45) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\asdfgh.pwn(45) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\asdfgh.pwn(45) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\asdfgh.pwn(57) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\asdfgh.pwn(57) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\asdfgh.pwn(57) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\asdfgh.pwn(63) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\asdfgh.pwn(63) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\asdfgh.pwn(63) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\asdfgh.pwn(63) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\asdfgh.pwn(63) : warning 202: number of arguments does not match definition D:\Нова папка (3)\samp02Xserver.win32\pawno\asdfgh.pwn(6 : error 030: compound statement not closed at the end of file (started at line 61) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
#include <a_samp>
#define BLUE 0x0000BBAA // Color Code
new Gate;
forward GateClose(playerid);
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" house gate's by Krisko_Milchev");
print("--------------------------------------\n");
Gate = CreateObject(994, -767.1913, 92.0703,349.5082, 0, 0, 0, 0, 0, 0);
CreateObject(994, -767.1913 ,92.0703, 349.5082, 0 , 0 ,0 , 0, 0, 0);
CreateObject(994, -767.1913, 92.0703, 349.5082, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public GateClose(playerid)
{
MoveObject(Gate,-767.1913, 92.0703,349.5082, 0, 0, 0, 0, 0, 0); // Looks more realistic :)
return 1; //You put 'return 1', remember the Semi-Colons! (;)
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/gateopen", true)==0)
{
MoveObject(Gate,-767.1913,92.0703,349.5082,0,0,0,0,0,0);
SendClientMessage(playerid, BLUE, "The house door has been opened please wait 10 seconds!");
SetTimer("GateClose", 10000, 0); // You defined GateClose, and put GateClose1.
return 1;
}
return 0;
} // At the end of this public, you need 'return 0;'.
#include <a_samp> #define COLOR_BLUE 0x0000BBAA // You didnt define the color! new Gate; forward GateClose(playerid); public OnFilterScriptInit() { print("\n--------------------------------------"); print(" house gate's by Krisko_Milchev"); print("--------------------------------------\n"); Gate = CreateObject(994, -767.1913, 92.0703,349.5082, 0, 0, 0, 0, 0, 0); CreateObject(994, -767.1913 ,92.0703, 349.5082, 0 , 0 ,0 , 0, 0, 0); CreateObject(994, -767.1913, 92.0703, 349.5082, 0, 0, 0, 0, 0, 0); return 1; } public OnFilterScriptExit() { return 1; } public GateClose(playerid) { MoveObject(Gate,-767.1913, 92.0703,349.5082, 0, 0, 0, 0, 0, 0); // Looks more realistic return 1; //You put 'return 1', remember the Semi-Colons! ( } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext, "/gateopen", true)==0) { MoveObject(Gate,-767.1913,92.0703,349.5082,0,0,0,0,0,0); SendClientMessage(playerid, BLUE, "The house door has been opened please wait 10 seconds!"); SetTimer("GateClose", 10000, 0); // You defined GateClose, and put GateClose1. return 1; } return 0; } // At the end of this public, you need 'return 0;'. |