11.08.2009, 21:45
can you see something wrong here i cant but i am still a noob and tryed to do it some guy told me how its done but i dident understand right can someone please explane or maybe edit it and post the code bellow so i can see it and learn from it please help
((sorry for my bad english))
P.S btw the place where i want to put the gate's is the furst house from the right left side after the sind Vinewood
here is the error
Quote:
#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; } |
P.S btw the place where i want to put the gate's is the furst house from the right left side after the sind Vinewood
here is the error
Quote:
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. |