Ez a szekció lehetővé teszi a felhasználó által írt összes hozzászólás megtekintését. Vedd figyelembe, hogy csak azokba a fórumokba írt hozzászólásokat látod, amelyekhez hozzáférésed van.
Üzenetek - Gabor..
Oldalak: 1 ... 113 114 [115] 116 117 ... 126
1711
« Dátum: 2012. március 14. - 13:25:05 »
Hogy érted azt, hogy más utasítással átkonvertálni? O_O Am házi szerveren semmi baja nincs, csak hoston O_O
1712
« Dátum: 2012. március 14. - 12:53:40 »
Hy all! Olyan gondba ütköztem, hogy most lett hostos a szerverem a bbehostingtól, és nem akar normálisan elindulni a játékmód, akármit csinálok vele, a main() függvény is bentvan, és pluginok is jók, de még mindig run time errort ír. A sampban, meg a módhoz Unknow-ot ír. Kipróbáltam házi szerveren, és tökéletesen ment, nem írt run time errort Ottvan az YSI-s figyelmeztetés, de attól még ment a szerverm, de most ettõl nem o_O Itt a server_log.txt: ---------- Loaded log file: \"server_log.txt\". ---------- SA-MP Dedicated Server ---------------------- v0.3d-R2, (C)2005-2011 SA-MP Team [12:00:47] [12:00:47] Server Plugins [12:00:47] -------------- [12:00:47] Loading plugin: Whirlpool.dll [12:00:47] [12:00:47] ================== [12:00:47] [12:00:47] Whirlpool loaded [12:00:47] [12:00:47] ================== [12:00:47] [12:00:47] Loaded. [12:00:47] Loading plugin: streamer.dll [12:00:47] *** Streamer Plugin v2.5.2 by Incognito loaded *** [12:00:47] Loaded. [12:00:47] Loading plugin: sscanf.dll [12:00:47] [12:00:47] =============================== [12:00:47] sscanf plugin loaded. [12:00:47] (c) 2009 Alex \"Y_Less\" Cole [12:00:47] =============================== [12:00:47] Loaded. [12:00:47] Loading plugin: mysql.dll [12:00:47] > MySQL plugin R6-2 successfully loaded. [12:00:47] Loaded. [12:00:47] Loaded 4 plugins. [12:00:47] [12:00:47] Ban list [12:00:47] -------- [12:00:47] Loaded: samp.ban [12:00:47] [12:00:47] [12:00:47] Filterscripts [12:00:47] --------------- [12:00:47] Loading filterscript \'GarHouse.amx\'... [12:00:47] [12:00:47] ======================================= [12:00:47] | | [12:00:47] | YSI version 1.03.0011 | [12:00:47] | By Alex \"Y_Less\" Cole | [12:00:47] | | [12:00:47] | Checking the latest YSI version.. | [12:00:47] | | [12:00:47] ======================================= [12:00:47] [12:00:47] >> Attempting to load GarHouse v2.0... << [12:00:47] Total House Interiors Loaded: 11. Duration: 2 ms [12:00:47] Total Houses Loaded: 36. Duration: 38 ms [12:00:47] >> GarHouse v2.0 By [03]Garsino Loaded << [12:00:47] Loading filterscript \'ladmin.amx\'... [12:00:47] ________________________________________ [12:00:47] ________________________________________ [12:00:47] LAdmin Loading... [12:00:47] ________________________________________ [12:00:47] -Configuration Settings Loaded [12:00:47] -39 Forbidden Names Loaded [12:00:47] -10 Forbidden Tags Loaded [12:00:47] -9 Forbidden Words Loaded [12:00:47] ________________________________________ [12:00:47] LAdmin Version 4.2 [12:00:47] Loaded [12:00:47] ________________________________________ [12:00:47] Date: 14/3/2012 Time: 12:0 :47 [12:00:47] ________________________________________ [12:00:47] ________________________________________ [12:00:47] Loading filterscript \'munka.amx\'... [12:00:47] Loading filterscript \'speedo.amx\'... [12:00:47] -------------------------------------- [12:00:47] Speedometer by [WsR]RyDeR - Loaded - [12:00:47] -------------------------------------- [12:00:47] Loading filterscript \'mysql.amx\'... [12:00:47] Loading filterscript \'leader.amx\'... [12:00:47] _____________________________ [12:00:47] | Leader rendszer by kadaradam | [12:00:47] | Bet�lt�s... | [12:00:47] |_MySQL:_Nem_siker�lt_csatlakozni__| [12:00:47] Loading filterscript \'text.amx\'... [12:00:47] Loading filterscript \'objectmap.amx\'... [12:00:47] Loaded 8 filterscripts. [12:00:47] Script[gamemodes/tbwss.amx]: Run time error 19: \"File or function is not found\" [12:00:47] Number of vehicle models: 0 [12:02:47] [12:02:47] ======================================= [12:02:47] | | [12:02:47] | Error: Could not connect to YSI | [12:02:47] | update server (response was 003). | [12:02:47] | | [12:02:47] ======================================= [12:02:47] ---------- Loaded log file: \"server_log.txt\". ---------- SA-MP Dedicated Server ---------------------- v0.3d-R2, (C)2005-2011 SA-MP Team [12:22:11] [12:22:11] Server Plugins [12:22:11] -------------- [12:22:11] Loading plugin: Whirlpool.dll [12:22:11] [12:22:11] ================== [12:22:11] [12:22:11] Whirlpool loaded [12:22:11] [12:22:11] ================== [12:22:11] [12:22:11] Loaded. [12:22:11] Loading plugin: streamer.dll [12:22:11] *** Streamer Plugin v2.5.2 by Incognito loaded *** [12:22:11] Loaded. [12:22:11] Loading plugin: sscanf.dll [12:22:11] [12:22:11] =============================== [12:22:11] sscanf plugin loaded. [12:22:11] (c) 2009 Alex \"Y_Less\" Cole [12:22:11] =============================== [12:22:11] Loaded. [12:22:11] Loading plugin: mysql.dll [12:22:11] > MySQL plugin R6-2 successfully loaded. [12:22:11] Loaded. [12:22:11] Loaded 4 plugins. [12:22:11] [12:22:11] Ban list [12:22:11] -------- [12:22:11] Loaded: samp.ban [12:22:11] [12:22:11] [12:22:11] Filterscripts [12:22:11] --------------- [12:22:11] Loading filterscript \'GarHouse.amx\'... [12:22:11] [12:22:11] ======================================= [12:22:11] | | [12:22:11] | YSI version 1.03.0011 | [12:22:11] | By Alex \"Y_Less\" Cole | [12:22:11] | | [12:22:11] | Checking the latest YSI version.. | [12:22:11] | | [12:22:11] ======================================= [12:22:11] [12:22:11] >> Attempting to load GarHouse v2.0... << [12:22:11] Total House Interiors Loaded: 11. Duration: 3 ms [12:22:11] Total Houses Loaded: 36. Duration: 40 ms [12:22:11] >> GarHouse v2.0 By [03]Garsino Loaded << [12:22:11] Loading filterscript \'ladmin.amx\'... [12:22:11] ________________________________________ [12:22:11] ________________________________________ [12:22:11] LAdmin Loading... [12:22:11] ________________________________________ [12:22:11] -Configuration Settings Loaded [12:22:11] -39 Forbidden Names Loaded [12:22:11] -10 Forbidden Tags Loaded [12:22:11] -9 Forbidden Words Loaded [12:22:11] ________________________________________ [12:22:11] LAdmin Version 4.2 [12:22:11] Loaded [12:22:11] ________________________________________ [12:22:11] Date: 14/3/2012 Time: 12:22 :11 [12:22:11] ________________________________________ [12:22:11] ________________________________________ [12:22:11] Loading filterscript \'munka.amx\'... [12:22:11] Loading filterscript \'speedo.amx\'... [12:22:11] -------------------------------------- [12:22:11] Speedometer by [WsR]RyDeR - Loaded - [12:22:11] -------------------------------------- [12:22:11] Loading filterscript \'mysql.amx\'... [12:22:11] Loading filterscript \'leader.amx\'... [12:22:11] Loading filterscript \'text.amx\'... [12:22:11] Loading filterscript \'objectmap.amx\'... [12:22:11] Loaded 8 filterscripts. [12:22:11] Script[gamemodes/tbwss.amx]: Run time error 19: \"File or function is not found\" [12:22:11] Number of vehicle models: 0 ---------- Loaded log file: \"server_log.txt\". ---------- SA-MP Dedicated Server ---------------------- v0.3d-R2, (C)2005-2011 SA-MP Team [12:22:48] [12:22:48] Server Plugins [12:22:48] -------------- [12:22:48] Loading plugin: Whirlpool.dll [12:22:48] [12:22:48] ================== [12:22:48] [12:22:48] Whirlpool loaded [12:22:48] [12:22:48] ================== [12:22:48] [12:22:48] Loaded. [12:22:48] Loading plugin: streamer.dll [12:22:48] *** Streamer Plugin v2.5.2 by Incognito loaded *** [12:22:48] Loaded. [12:22:48] Loading plugin: sscanf.dll [12:22:48] [12:22:48] =============================== [12:22:48] sscanf plugin loaded. [12:22:48] (c) 2009 Alex \"Y_Less\" Cole [12:22:48] =============================== [12:22:48] Loaded. [12:22:48] Loading plugin: mysql.dll [12:22:48] > MySQL plugin R6-2 successfully loaded. [12:22:48] Loaded. [12:22:48] Loaded 4 plugins. [12:22:48] [12:22:48] Ban list [12:22:48] -------- [12:22:48] Loaded: samp.ban [12:22:48] [12:22:49] [12:22:49] Filterscripts [12:22:49] --------------- [12:22:49] Loading filterscript \'GarHouse.amx\'... [12:22:49] [12:22:49] ======================================= [12:22:49] | | [12:22:49] | YSI version 1.03.0011 | [12:22:49] | By Alex \"Y_Less\" Cole | [12:22:49] | | [12:22:49] | Checking the latest YSI version.. | [12:22:49] | | [12:22:49] ======================================= [12:22:49] [12:22:49] >> Attempting to load GarHouse v2.0... << [12:22:49] Total House Interiors Loaded: 11. Duration: 3 ms [12:22:49] Total Houses Loaded: 36. Duration: 34 ms [12:22:49] >> GarHouse v2.0 By [03]Garsino Loaded << [12:22:49] Loading filterscript \'ladmin.amx\'... [12:22:49] ________________________________________ [12:22:49] ________________________________________ [12:22:49] LAdmin Loading... [12:22:49] ________________________________________ [12:22:49] -Configuration Settings Loaded [12:22:49] -39 Forbidden Names Loaded [12:22:49] -10 Forbidden Tags Loaded [12:22:49] -9 Forbidden Words Loaded [12:22:49] ________________________________________ [12:22:49] LAdmin Version 4.2 [12:22:49] Loaded [12:22:49] ________________________________________ [12:22:49] Date: 14/3/2012 Time: 12:22 :49 [12:22:49] ________________________________________ [12:22:49] ________________________________________ [12:22:49] Loading filterscript \'munka.amx\'... [12:22:49] Loading filterscript \'speedo.amx\'... [12:22:49] -------------------------------------- [12:22:49] Speedometer by [WsR]RyDeR - Loaded - [12:22:49] -------------------------------------- [12:22:49] Loading filterscript \'mysql.amx\'... [12:22:49] Loading filterscript \'leader.amx\'... [12:22:49] Loading filterscript \'text.amx\'... [12:22:49] Loading filterscript \'objectmap.amx\'... [12:22:49] Loaded 8 filterscripts. [12:22:49] Script[gamemodes/tbwss.amx]: Run time error 19: \"File or function is not found\" [12:22:49] Number of vehicle models: 0 [12:24:49] [12:24:49] ======================================= [12:24:49] | | [12:24:49] | Error: Could not connect to YSI | [12:24:49] | update server (response was 003). | [12:24:49] | | [12:24:49] ======================================= [12:24:49] ---------- Loaded log file: \"server_log.txt\". ---------- SA-MP Dedicated Server ---------------------- v0.3d-R2, (C)2005-2011 SA-MP Team [12:38:41] [12:38:41] Server Plugins [12:38:41] -------------- [12:38:41] Loading plugin: Whirlpool.dll [12:38:41] [12:38:41] ================== [12:38:41] [12:38:41] Whirlpool loaded [12:38:41] [12:38:41] ================== [12:38:41] [12:38:41] Loaded. [12:38:41] Loading plugin: streamer.dll [12:38:41] *** Streamer Plugin v2.5.2 by Incognito loaded *** [12:38:41] Loaded. [12:38:41] Loading plugin: sscanf.dll [12:38:41] [12:38:41] =============================== [12:38:41] sscanf plugin loaded. [12:38:41] (c) 2009 Alex \"Y_Less\" Cole [12:38:41] =============================== [12:38:41] Loaded. [12:38:41] Loading plugin: mysql.dll [12:38:41] > MySQL plugin R6-2 successfully loaded. [12:38:41] Loaded. [12:38:41] Loaded 4 plugins. [12:38:41] [12:38:41] Ban list [12:38:41] -------- [12:38:41] Loaded: samp.ban [12:38:41] [12:38:41] [12:38:41] Filterscripts [12:38:41] --------------- [12:38:41] Loading filterscript \'GarHouse.amx\'... [12:38:41] [12:38:41] ======================================= [12:38:41] | | [12:38:41] | YSI version 1.03.0011 | [12:38:41] | By Alex \"Y_Less\" Cole | [12:38:41] | | [12:38:41] | Checking the latest YSI version.. | [12:38:41] | | [12:38:41] ======================================= [12:38:41] [12:38:41] >> Attempting to load GarHouse v2.0... << [12:38:41] Total House Interiors Loaded: 11. Duration: 3 ms [12:38:41] Total Houses Loaded: 36. Duration: 34 ms [12:38:41] >> GarHouse v2.0 By [03]Garsino Loaded << [12:38:41] Loading filterscript \'ladmin.amx\'... [12:38:41] ________________________________________ [12:38:41] ________________________________________ [12:38:41] LAdmin Loading... [12:38:41] ________________________________________ [12:38:41] -Configuration Settings Loaded [12:38:41] -39 Forbidden Names Loaded [12:38:41] -10 Forbidden Tags Loaded [12:38:41] -9 Forbidden Words Loaded [12:38:41] ________________________________________ [12:38:41] LAdmin Version 4.2 [12:38:41] Loaded [12:38:41] ________________________________________ [12:38:41] Date: 14/3/2012 Time: 12:38 :41 [12:38:41] ________________________________________ [12:38:41] ________________________________________ [12:38:41] Loading filterscript \'munka.amx\'... [12:38:41] Loading filterscript \'speedo.amx\'... [12:38:41] -------------------------------------- [12:38:41] Speedometer by [WsR]RyDeR - Loaded - [12:38:41] -------------------------------------- [12:38:41] Loading filterscript \'mysql.amx\'... [12:38:41] Loading filterscript \'leader.amx\'... [12:38:41] Loading filterscript \'text.amx\'... [12:38:41] Loading filterscript \'objectmap.amx\'... [12:38:41] Loaded 8 filterscripts. [12:38:41] Script[gamemodes/tbwss.amx]: Run time error 19: \"File or function is not found\" [12:38:41] Number of vehicle models: 0 [12:40:41] [12:40:41] ======================================= [12:40:41] | | [12:40:41] | Error: Could not connect to YSI | [12:40:41] | update server (response was 003). | [12:40:41] | | [12:40:41] ======================================= [12:40:41] ---------- Loaded log file: \"server_log.txt\". ---------- SA-MP Dedicated Server ---------------------- v0.3d-R2, (C)2005-2011 SA-MP Team [12:42:14] [12:42:14] Server Plugins [12:42:14] -------------- [12:42:14] Loading plugin: Whirlpool.dll [12:42:14] [12:42:14] ================== [12:42:14] [12:42:14] Whirlpool loaded [12:42:14] [12:42:14] ================== [12:42:14] [12:42:14] Loaded. [12:42:14] Loading plugin: streamer.dll [12:42:14] *** Streamer Plugin v2.5.2 by Incognito loaded *** [12:42:14] Loaded. [12:42:14] Loading plugin: sscanf.dll [12:42:14] [12:42:14] =============================== [12:42:14] sscanf plugin loaded. [12:42:14] (c) 2009 Alex \"Y_Less\" Cole [12:42:14] =============================== [12:42:14] Loaded. [12:42:14] Loading plugin: mysql.dll [12:42:14] > MySQL plugin R6-2 successfully loaded. [12:42:14] Loaded. [12:42:14] Loaded 4 plugins. [12:42:14] [12:42:14] Ban list [12:42:14] -------- [12:42:14] Loaded: samp.ban [12:42:14] [12:42:14] [12:42:14] Filterscripts [12:42:14] --------------- [12:42:14] Loading filterscript \'GarHouse.amx\'... [12:42:14] [12:42:14] ======================================= [12:42:14] | | [12:42:14] | YSI version 1.03.0011 | [12:42:14] | By Alex \"Y_Less\" Cole | [12:42:14] | | [12:42:14] | Checking the latest YSI version.. | [12:42:14] | | [12:42:14] ======================================= [12:42:14] [12:42:14] >> Attempting to load GarHouse v2.0... << [12:42:14] Total House Interiors Loaded: 11. Duration: 2 ms [12:42:14] Total Houses Loaded: 36. Duration: 34 ms [12:42:14] >> GarHouse v2.0 By [03]Garsino Loaded << [12:42:14] Loading filterscript \'ladmin.amx\'... [12:42:14] ________________________________________ [12:42:14] ________________________________________ [12:42:14] LAdmin Loading... [12:42:14] ________________________________________ [12:42:14] -Configuration Settings Loaded [12:42:14] -39 Forbidden Names Loaded [12:42:14] -10 Forbidden Tags Loaded [12:42:14] -9 Forbidden Words Loaded [12:42:14] ________________________________________ [12:42:14] LAdmin Version 4.2 [12:42:14] Loaded [12:42:14] ________________________________________ [12:42:14] Date: 14/3/2012 Time: 12:42 :14 [12:42:14] ________________________________________ [12:42:14] ________________________________________ [12:42:14] Loading filterscript \'munka.amx\'... [12:42:14] Loading filterscript \'speedo.amx\'... [12:42:14] -------------------------------------- [12:42:14] Speedometer by [WsR]RyDeR - Loaded - [12:42:14] -------------------------------------- [12:42:14] Loading filterscript \'mysql.amx\'... [12:42:14] Loading filterscript \'leader.amx\'... [12:42:14] Loading filterscript \'text.amx\'... [12:42:14] Loading filterscript \'objectmap.amx\'... [12:42:14] Loaded 8 filterscripts. [12:42:14] Script[gamemodes/tbwss.amx]: Run time error 19: \"File or function is not found\" [12:42:14] Number of vehicle models: 0 ---------- Loaded log file: \"server_log.txt\". ---------- SA-MP Dedicated Server ---------------------- v0.3d-R2, (C)2005-2011 SA-MP Team [12:43:02] [12:43:02] Server Plugins [12:43:02] -------------- [12:43:02] Loading plugin: Whirlpool.dll [12:43:02] [12:43:02] ================== [12:43:02] [12:43:02] Whirlpool loaded [12:43:02] [12:43:02] ================== [12:43:02] [12:43:02] Loaded. [12:43:02] Loading plugin: streamer.dll [12:43:02] *** Streamer Plugin v2.5.2 by Incognito loaded *** [12:43:02] Loaded. [12:43:02] Loading plugin: sscanf.dll [12:43:02] [12:43:02] =============================== [12:43:02] sscanf plugin loaded. [12:43:02] (c) 2009 Alex \"Y_Less\" Cole [12:43:02] =============================== [12:43:02] Loaded. [12:43:02] Loading plugin: mysql.dll [12:43:02] > MySQL plugin R6-2 successfully loaded. [12:43:02] Loaded. [12:43:02] Loaded 4 plugins. [12:43:02] [12:43:02] Ban list [12:43:02] -------- [12:43:02] Loaded: samp.ban [12:43:02] [12:43:02] [12:43:02] Filterscripts [12:43:02] --------------- [12:43:02] Loading filterscript \'GarHouse.amx\'... [12:43:02] [12:43:02] ======================================= [12:43:02] | | [12:43:02] | YSI version 1.03.0011 | [12:43:02] | By Alex \"Y_Less\" Cole | [12:43:02] | | [12:43:02] | Checking the latest YSI version.. | [12:43:02] | | [12:43:02] ======================================= [12:43:02] [12:43:02] >> Attempting to load GarHouse v2.0... << [12:43:02] Total House Interiors Loaded: 11. Duration: 2 ms [12:43:02] Total Houses Loaded: 36. Duration: 33 ms [12:43:02] >> GarHouse v2.0 By [03]Garsino Loaded << [12:43:02] Loading filterscript \'ladmin.amx\'... [12:43:02] ________________________________________ [12:43:02] ________________________________________ [12:43:02] LAdmin Loading... [12:43:02] ________________________________________ [12:43:02] -Configuration Settings Loaded [12:43:02] -39 Forbidden Names Loaded [12:43:02] -10 Forbidden Tags Loaded [12:43:02] -9 Forbidden Words Loaded [12:43:02] ________________________________________ [12:43:02] LAdmin Version 4.2 [12:43:02] Loaded [12:43:02] ________________________________________ [12:43:02] Date: 14/3/2012 Time: 12:43 :2 [12:43:02] ________________________________________ [12:43:02] ________________________________________ [12:43:02] Loading filterscript \'munka.amx\'... [12:43:02] Loading filterscript \'speedo.amx\'... [12:43:02] -------------------------------------- [12:43:02] Speedometer by [WsR]RyDeR - Loaded - [12:43:02] -------------------------------------- [12:43:02] Loading filterscript \'mysql.amx\'... [12:43:02] Loading filterscript \'leader.amx\'... [12:43:02] Loading filterscript \'text.amx\'... [12:43:02] Loading filterscript \'objectmap.amx\'... [12:43:02] Loaded 8 filterscripts. [12:43:02] Script[gamemodes/tbwss.amx]: Run time error 19: \"File or function is not found\" [12:43:02] Number of vehicle models: 0 [12:45:02] [12:45:02] ======================================= [12:45:02] | | [12:45:02] | Error: Could not connect to YSI | [12:45:02] | update server (response was 003). | [12:45:02] | | [12:45:02] ======================================= [12:45:02]
1713
« Dátum: 2012. március 13. - 19:14:19 »
Ebbõl nem értek semmit se XD Mármint amit kurat linkelt.
1714
« Dátum: 2012. március 13. - 16:51:33 »
PVar-al is meglehet csinálni Am jó lett!
1715
« Dátum: 2012. március 13. - 16:40:24 »
Jaja :D
1716
« Dátum: 2012. március 13. - 16:18:32 »
#include <a_samp> #include <zcmd> #define munka 100 #define Munka_Favago 1 CMD:favago(playerid, params[]) { ShowPlayerDialog(playerid, munka, DIALOG_STYLE_LIST, \"Válaszd ki, hogy elfogadod-e a munkát!\",\"Elfogadom\",\"Nem Fogadom el\",\" Választ\", \"Mégse\"); return 1; } CMD:fakivagas(playerid, params[]) { if(IsPlayerInRangeOfPoint(playerid, 2.0, 2428.5974,-139.4831,31.4704) || IsPlayerInRangeOfPoint(playerid, 2.0, 2403.0400,-139.5483,28.8782) || IsPlayerInRangeOfPoint(playerid, 2.0, 2431.5042,-167.3200,27.6910) || IsPlayerInRangeOfPoint(playerid, 2.0, 2435.1577,-152.6501,31.3709)) { if(GetPVarInt(playerid, \"Favago\") == Munka_Favago) { TogglePlayerControllable(playerid, 0); GivePlayerMoney(playerid, -100); SendClientMessage(playerid, 0xFF0000AA, \"Elkezdted kivágni a fát, és a fejsze élezésért $100-t fizettél!\"); SetTimerEx(\"favagas\",25000,0,\"i\",playerid); } } return 1; } forward favagas(playerid); public favagas(playerid) { TogglePlayerControllable(playerid, 1); SendClientMessage(playerid, 0x33CCFFAA, \"Befejezted a favágást! Kaptál $745-t, és 10 pontot!\"); GivePlayerMoney(playerid, 745); SetPlayerScore(playerid,GetPlayerScore(playerid)+10); return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == munka) { if(response) { if(listitem == 0) { SetPVarInt(playerid, \"Favago\", Munka_Favago); SendClientMessage(playerid, 0x33CCFFAA, \"Elfogadtad a munkát Favágó lettél!\"); } if(listitem == 1) { SendClientMessage(playerid, 0x33CCFFAA, \"Nem fogadtad el a munkát! Nem lettél favágó! :\'(\"); } } } return 1; } Ittvan Dialógosan!
1717
« Dátum: 2012. március 13. - 16:10:04 »
Akárhova teheted, csak ne egy eljárás alá
1718
« Dátum: 2012. március 13. - 15:02:23 »
Köszönöm! Hát úgy nem teszteltem, de lehet, hogy jobb úgy, de így is tökéletesen mûködik new bool: tiltas[MAX_PLAYERS];-al azthiszem nem mûködne, mert itt nem saját magadat tiltod le, hanem egy másik játékost, és azért a playerid-nek is letiltja, meg a másik játékosnak is
1719
« Dátum: 2012. március 13. - 14:56:23 »
Sziasztok! Írtam egy Privát Üzenet Rendszert, ami tartalmazza: - Magát a /pm parancsot, amivel tudsz üzenetet küldeni másnak, és csak õ látja, meg te. -Engedélyezõ, és Tiltó parancsot, letudod tiltani a megadott játékost. #include < a_samp > #include < zcmd > #include < sscanf2 > #define COLOR_BLUE 0x33CCFFAA #define COLOR_RED 0xFF0000AA #define COLOR_GREEN 0x33FF33AA #define COLOR_YELLOW 0xFF9900AA #define COLOR_ORANGE 0xFF9900AA new bool: g_bTiltas[ MAX_PLAYERS ] [ MAX_PLAYERS ], g_szFormat[ 300 ], g_iPlayer; CMD:pm(playerid, params[]) { new szMessage[ 300 ]; if( sscanf( params, \"us[300]\", g_iPlayer, szMessage ) ) return SendClientMessage( playerid, 0xFF0000AA, \"Használat: /pm <Játékos ID> <Üzenet>\" ); if( g_iPlayer == INVALID_PLAYER_ID ) return SendClientMessage( playerid, 0xFF0000AA, \"HIBA: Érvénytelen azonosító!\" ); if( playerid == g_iPlayer ) return SendClientMessage( playerid, 0xFF0000AA, \"HIBA: Magadnak nem küldhetsz privát üzenetet...\" ); if( g_bTiltas[ g_iPlayer ][ playerid ] == true ) return SendClientMessage(playerid, 0xFF0000AA, \"HIBA: Ez a játékos letiltotta a tõled érkezõ PM-et!\"); format( g_szFormat, sizeof( g_szFormat ), \"[PM] Tõled: Neki -> %s(%d): %s\", pName( g_iPlayer ), g_iPlayer, szMessage ); SendClientMessage( playerid, 0x33FF33AA, g_szFormat ); format( g_szFormat, sizeof( g_szFormat ), \"[PM] Neked: Tõle -> %s(%d): %s\", pName( playerid ), playerid, szMessage ); SendClientMessage( g_iPlayer, 0x33FF33AA, g_szFormat ); return 1; } CMD:pmtilt(playerid, params[]) { if( sscanf( params, \"u\", g_iPlayer ) ) return SendClientMessage( playerid, COLOR_ORANGE, \"Használat: /pmtilt <ID/Játékosnév>\") ; if( g_iPlayer == INVALID_PLAYER_ID ) return SendClientMessage( playerid, 0xFF0000AA, \"HIBA: Érvénytelen azonosító!\" ); if( g_bTiltas[ playerid ][ g_iPlayer ] == true ) return SendClientMessage( playerid, COLOR_RED, \"HIBA: Ezt a játékost már letiltottad! Ha felakarod oldani, akkor /pmold!\" ); g_bTiltas[ playerid ][ g_iPlayer ] = true; format( g_szFormat, sizeof( g_szFormat ), \"Letiltottad %s(%d) nevû játékost! Nem tud neked PM-et küldeni.\", pName( g_iPlayer ), g_iPlayer ); SendClientMessage( playerid, COLOR_RED, g_szFormat ); return 1; } CMD:pmold(playerid, params[]) { if( sscanf( params, \"u\", g_iPlayer ) ) return SendClientMessage( playerid, COLOR_RED, \"Használat: /pmold <ID/Játékosnév>\" ); if( g_iPlayer == INVALID_PLAYER_ID ) return SendClientMessage( playerid, 0xFF0000AA, \"HIBA: Érvénytelen azonosító!\" ); if( g_bTiltas[ playerid ][ g_iPlayer ] == false ) return SendClientMessage( playerid, COLOR_RED, \"HIBA: Ezt a játékost már feloldottad\" ); g_bTiltas[ playerid ][ g_iPlayer ] = false; format( g_szFormat, sizeof( g_szFormat ), \"Feloldottad %s(%d) nevû játékost! Mostmár tud neked PM-et küldeni!\", pName( g_iPlayer ), g_iPlayer ); SendClientMessage( playerid, COLOR_RED, g_szFormat ); return 1; } stock pName( playerid ) { static s_szPlayerName[ MAX_PLAYER_NAME ]; GetPlayerName( playerid, s_szPlayerName, MAX_PLAYER_NAME ); return s_szPlayerName; }
Remélem, hogy azért valakinek elnyerte a tetszését!
1720
« Dátum: 2012. március 13. - 12:20:49 »
Littletown? Komolyan? Hülyébb vagy mint egy kosár körte.
:D:D XD
1721
« Dátum: 2012. március 13. - 12:07:42 »
\"Üdv\" :D Igaz, hogy régota ittvagy, am jó lett :thumbsup: További jó fórumozást!
1722
« Dátum: 2012. március 12. - 20:55:28 »
#include <a_samp> #include <zcmd> #define Munka_Favago 1 CMD:favago(playerid, params[]) { SetPVarInt(playerid, \"Favago\", Munka_Favago); SendClientMessage(playerid, 0x33CCFFAA, \"Favágó lettél!\"); return 1; } CMD:fakivagas(playerid, params[]) { if(IsPlayerInRangeOfPoint(playerid, 2.0, 2428.5974,-139.4831,31.4704) || IsPlayerInRangeOfPoint(playerid, 2.0, 2403.0400,-139.5483,28.8782) || IsPlayerInRangeOfPoint(playerid, 2.0, 2431.5042,-167.3200,27.6910) || IsPlayerInRangeOfPoint(playerid, 2.0, 2435.1577,-152.6501,31.3709)) { if(GetPVarInt(playerid, \"Favago\") == Munka_Favago) { TogglePlayerControllable(playerid, 0); GivePlayerMoney(playerid, -100); SendClientMessage(playerid, 0xFF0000AA, \"Elkezdted kivágni a fát, és a fejsze élezésért $100-t fizettél!\"); SetTimerEx(\"favagas\",25000,0,\"i\",playerid); } } return 1; } forward favagas(playerid); public favagas(playerid) { TogglePlayerControllable(playerid, 1); SendClientMessage(playerid, 0x33CCFFAA, \"Befejezted a favágást! Kaptál $745-t, és 10 pontot!\"); GivePlayerMoney(playerid, 745); SetPlayerScore(playerid,GetPlayerScore(playerid)+10); return 1; } Lehet egy-két elírás van benne, de szólj, mert nagyon fáradt vagyok :S Akkor is nyugodtan szólj, ha nem mûködik, de szerintem megy
1723
« Dátum: 2012. március 12. - 19:57:55 »
Mentsd le a kordinátákat a fáknál, és másold be ide!
1724
« Dátum: 2012. március 12. - 13:38:15 »
Mondjuk az igaz
1725
« Dátum: 2012. március 12. - 13:10:36 »
Jah, hogy úgy, ez tényleg nehézkes feladat, és jaja kellenek a változói meg minden lényeges dolog
Oldalak: 1 ... 113 114 [115] 116 117 ... 126
|