Kaphatok egy mintát ?
public OnFilterScriptInit(){SetTimer(\"Enter\", 500, true);return 1;}forward Enter();public Enter(){for(new i=0;i<MAX_PLAYERS;i++)//azért nem használjuk a szimpla playerid-t, mert akkor a 0 id-vel menne csak.{if(IsPlayerInRangeOfPoint(3, X, Y ,Z) return SetPlayerPos(playerid, X, Y, Z);//és így tovább, akárhányszor akarod...}return 1;}
----------Loaded log file: \"server_log.txt\".----------SA-MP Dedicated Server----------------------v0.3z, (C)2005-2014 SA-MP Team[18:40:14][18:40:14] Server Plugins[18:40:14] --------------[18:40:14] Loading plugin: streamer.so[18:40:14]*** Streamer Plugin v2.6 by Incognito loaded ***[18:40:14] Loaded.[18:40:14] Loading plugin: sscanf.so[18:40:14][18:40:14] ===============================[18:40:14] sscanf plugin loaded.[18:40:14] (coffee) 2009 Alex \"Y_Less\" Cole[18:40:14] 0.3d-R2 500 Players \"dnee\"[18:40:14] ===============================[18:40:14] Loaded.[18:40:14] Loading plugin: crashdetect.so[18:40:14] Failed (plugins/crashdetect.so: cannot open shared object file: No such file or directory)[18:40:14] Loaded 2 plugins.
----------Loaded log file: \"server_log.txt\".----------SA-MP Dedicated Server----------------------v0.3z, (C)2005-2014 SA-MP Team[18:40:14][18:40:14] Server Plugins[18:40:14] --------------[18:40:14] Loading plugin: streamer.so[18:40:14]*** Streamer Plugin v2.6 by Incognito loaded ***[18:40:14] Loaded.[18:40:14] Loading plugin: sscanf.so[18:40:14][18:40:14] ===============================[18:40:14] sscanf plugin loaded.[18:40:14] (coffee) 2009 Alex \"Y_Less\" Cole[18:40:14] 0.3d-R2 500 Players \"dnee\"[18:40:14] ===============================[18:40:14] Loaded.[18:40:14] Loading plugin: crashdetect.so[18:40:14] Failed (plugins/crashdetect.so: cannot open shared object file: No such file or directory)[18:40:14] Loaded 2 plugins. Ebbe mi a gond?Melyik plugin nemjó,el tudnátok nekem linkelni honnan szedjem le
#include <a_samp>#include <zcmd>#include <streamer>new kapum;public OnFilterScriptInit(){kapum = CreateDynamicObject(2990, 2105.3999, 1861.5, 13.6, 0, 0, 76);}CMD:pdakknyit(playerid, params[]){MoveDynamicObject(kapum, 2103.000, 1851.0000, 13.6, 5);return 1;}CMD:pdakkzar(playerid, params[]){MoveDynamicObject(kapum, 2105.3999, 1861.500, 13.6000, 5);return 1;}{kapum = CreateDynamicObject(10184, 1912.5, 1969.9, 11.6, 0, 270, 0);}CMD:garagenyit(playerid, params[]){MoveDynamicObject(kapum, 1916.9, 1969.9, 9.1, 5);return 1;}CMD:garagezar(playerid, params[]){MoveDynamicObject(kapum, 1912.5, 1969.9, 11.6, 5);return 1;}
#include <a_samp>#include <zcmd>#include <streamer>new kapum;public OnFilterScriptInit(){kapum = CreateDynamicObject(2990, 2105.3999, 1861.5, 13.6, 0, 0, 76);}CMD:pdakknyit(playerid, params[]){MoveDynamicObject(kapum, 2103.000, 1851.0000, 13.6, 5);return 1;}CMD:pdakkzar(playerid, params[]){MoveDynamicObject(kapum, 2105.3999, 1861.500, 13.6000, 5);return 1;}{kapum = CreateDynamicObject(10184, 1912.5, 1969.9, 11.6, 0, 270, 0);}CMD:garagenyit(playerid, params[]){MoveDynamicObject(kapum, 1916.9, 1969.9, 9.1, 5);return 1;}CMD:garagezar(playerid, params[]){MoveDynamicObject(kapum, 1912.5, 1969.9, 11.6, 5);return 1;} Meg tudnátok mondani hogy miért írja ki ezt:C:\\Users\\Dovahkiin\\Desktop\\Szerver\\filterscripts\\kapuk.pwn(22) : error 055: start of function body without function headerPawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase1 Error.
#include <a_samp> #include <zcmd> #include <streamer> new kapum; public OnFilterScriptInit() { kapum = CreateDynamicObject(2990, 2105.3999, 1861.5, 13.6, 0, 0, 76); } CMD:pdakknyit(playerid, params[]) { MoveDynamicObject(kapum, 2103.000, 1851.0000, 13.6, 5); return 1; } CMD:pdakkzar(playerid, params[]) { MoveDynamicObject(kapum, 2105.3999, 1861.500, 13.6000, 5); return 1; } CMD:garagenyit(playerid, params[]) { MoveDynamicObject(kapum, 1916.9, 1969.9, 9.1, 5); return 1; } CMD:garagezar(playerid, params[]) { MoveDynamicObject(kapum, 1912.5, 1969.9, 11.6, 5); return 1; }
#include <a_samp>#include <zcmd>#include <streamer>new kapum;public OnFilterScriptInit(){kapum = CreateDynamicObject(2990, 2105.3999, 1861.5, 13.6, 0, 0, 76);}CMD:pdakknyit(playerid, params[]){MoveDynamicObject(kapum, 2103.000, 1851.0000, 13.6, 5);return 1;}CMD:pdakkzar(playerid, params[]){MoveDynamicObject(kapum, 2105.3999, 1861.500, 13.6000, 5);return 1;}{kapum = CreateDynamicObject(10184, 1912.5, 1969.9, 11.6, 0, 270, 0);}CMD:garagenyit(playerid, params[]){MoveDynamicObject(kapum, 1916.9, 1969.9, 9.1, 5);return 1;}CMD:garagezar(playerid, params[]){MoveDynamicObject(kapum, 1912.5, 1969.9, 11.6, 5);return 1;} Meg tudnátok mondani hogy miért írja ki ezt:C:\\Users\\Dovahkiin\\Desktop\\Szerver\\filterscripts\\kapuk.pwn(22) : error 055: start of function body without function headerPawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase1 Error. #include <a_samp> #include <zcmd> #include <streamer> new kapum; public OnFilterScriptInit() { kapum = CreateDynamicObject(2990, 2105.3999, 1861.5, 13.6, 0, 0, 76); } CMD:pdakknyit(playerid, params[]) { MoveDynamicObject(kapum, 2103.000, 1851.0000, 13.6, 5); return 1; } CMD:pdakkzar(playerid, params[]) { MoveDynamicObject(kapum, 2105.3999, 1861.500, 13.6000, 5); return 1; } CMD:garagenyit(playerid, params[]) { MoveDynamicObject(kapum, 1916.9, 1969.9, 9.1, 5); return 1; } CMD:garagezar(playerid, params[]) { MoveDynamicObject(kapum, 1912.5, 1969.9, 11.6, 5); return 1; } Így már jó lesz. [/quote]de valahogy úgy kéne hogy egy másik interiort mozgasson
CMD:bankregister(playerid,params[]){new pass[128],str[128],kfile[128],pfile[128];if(sscanf(params,\"s[128]\",pass)) return SendClientMessage(playerid,-1,\"{ff0000}HASZNÁLAT: /bankregister [jelszó]\");if(GetPVarInt(playerid,\"IsRegistered\") == 1) return SendClientMessage(playerid,-1,\"{ff0000}HIBA: Neked már van bankkártyád!\");PlayerData[playerid][bankpassword] = pass;PlayerData[playerid][code] = RandomEx(10000000, 99999999);SetPVarInt(playerid,\"Logged\",1);format(kfile,sizeof(kfile),\"bBank/%d.ini\",PlayerData[playerid][code]);format(pfile,sizeof(pfile),\"bBank/Players/%s.ini\",pName(playerid));dini_Create(pfile);dini_Create(kfile);dini_Set(kfile,\"Owner\",pName(playerid));dini_IntSet(kfile,\"Money\",0);dini_Set(pfile,\"Password\",pass);dini_IntSet(pfile,\"Bankcode\",PlayerData[playerid][code]);PlayerData[playerid][bankmoney] = 0;format(str,sizeof(str),\"{949494}Kártyaszámod: {ff0000}%d {ffcc00}| {949494}Jelszó: {ff0000}%s\",PlayerData[playerid][code],PlayerData[playerid][bankpassword]);SendClientMessage(playerid,-1,\"{43de1d}Sikeresen elkészítve a bankkártyád!\");SendClientMessage(playerid,-1,str); SendClientMessage(playerid,-1,\"{43de1d}Automatikusan bejelentkeztél a bankba! Írd be a {ffcc00}/mybank parancsot a funkciókhoz!\");return 1;}