#include <a_samp>#if defined FILTERSCRIPTpublic OnFilterScriptInit()new Menu:munkak;munkak = CreateMenu(\"munkak\", 2, 55.0, 200.0, 100.0, 80.0); AddMenuItem(munkak, 0, \"Taxis\"); AddMenuItem(munkak, 0, \"Rendőr\"); AddMenuItem(munkak, 0, \"Mentős\"); AddMenuItem(munkak, 0, \"Tűzoltó\"); AddMenuItem(munkak, 0, \"Katona\"); AddMenuItem(munkak, 0, \"Testőr\"); AddMenuItem(munkak, 0, \"Pilóta\");{ print(\"\\n--------------------------------------\");print(\" Munka szkript\");print(\"--------------------------------------\\n\");return 1;}public OnFilterScriptExit(){return 1;}#elsemain(){print(\"\\n----------------------------------\");print(\" Blank Gamemode by your name here\");print(\"----------------------------------\\n\");}#endif public OnPlayerCommandText(playerid, cmdtext[]){if (strcmp(\"/munkak\", cmdtext, true, 10) == 0) { ShowMenuForPlayer(playerid,munkak); return 1;}public OnPlayerSelectedMenuRow(playerid, row)new Menu:current; current = GetPlayerMenu(playerid); if(current == munkak) { switch(row) { case 0:SetPlayerPos(playerid,-1559.5809,1223.1504,7.1846); SetPlayerSkin(playerid,142); GivePlayerWeapon(playerid,5,1);} switch(row) { case 1:SetPlayerPos(playerid,2286.5547,2428.8687,10.8203); SetPlayerSkin(playerid,280); GivePlayerWeapon(playerid,3,1); GivePlayerWeapon(playerid,24,500); GivePlayerWeapon(playerid,25,10);} switch(row) { case 2:SetPlayerPos(playerid,-2647.0623,606.8253,14.4531); SetPlayerSkin(playerid,274);} switch(row){case 3:SetPlayerPos(playerid,-2014.4716,87.8016,27.6875); GivePlayerWeapon(playerid,42,1); SetPlayerSkin(playerid,277);}switch(row)}case 4:SetPlayerPos(playerid,207.0975,1918.2472,17.6406); SetPlayerSkin(playerid,287); GivePlayerWeapon(playerid,31,1000);}switch(row)}case 5:SetPlayerPos(playerid,2028.0447,1006.7173,10.8203); GivePlayerWeapon(playerid,28,1000); SetPlayerSkin(playerid,163);}switch(row)}case 6:SetPlayerPos(playerid,1328.2408,1454.8300,10.8203); SetPlayerSkin(playerid,253);} } return 1;}
C:\\Documents and Settings\\Rendszergazda\\Asztal\\samp03asvr_R4_win32\\filterscripts\\munka.pwn(49) : warning 213: tag mismatchC:\\Documents and Settings\\Rendszergazda\\Asztal\\samp03asvr_R4_win32\\filterscripts\\munka.pwn(49) : error 017: undefined symbol \"munkak\"C:\\Documents and Settings\\Rendszergazda\\Asztal\\samp03asvr_R4_win32\\filterscripts\\munka.pwn(50) : warning 217: loose indentationC:\\Documents and Settings\\Rendszergazda\\Asztal\\samp03asvr_R4_win32\\filterscripts\\munka.pwn(53) : warning 217: loose indentationC:\\Documents and Settings\\Rendszergazda\\Asztal\\samp03asvr_R4_win32\\filterscripts\\munka.pwn(53) : error 029: invalid expression, assumed zeroC:\\Documents and Settings\\Rendszergazda\\Asztal\\samp03asvr_R4_win32\\filterscripts\\munka.pwn(53) : error 004: function \"OnPlayerSelectedMenuRow\" is not implementedC:\\Documents and Settings\\Rendszergazda\\Asztal\\samp03asvr_R4_win32\\filterscripts\\munka.pwn(55) : error 001: expected token: \";\", but found \"new\"C:\\Documents and Settings\\Rendszergazda\\Asztal\\samp03asvr_R4_win32\\filterscripts\\munka.pwn(56) : warning 217: loose indentationC:\\Documents and Settings\\Rendszergazda\\Asztal\\samp03asvr_R4_win32\\filterscripts\\munka.pwn(57) : error 017: undefined symbol \"munkak\"C:\\Documents and Settings\\Rendszergazda\\Asztal\\samp03asvr_R4_win32\\filterscripts\\munka.pwn(60) : error 017: undefined symbol \"row\"C:\\Documents and Settings\\Rendszergazda\\Asztal\\samp03asvr_R4_win32\\filterscripts\\munka.pwn(63) : error 002: only a single statement (or expression) can follow each \"case\"C:\\Documents and Settings\\Rendszergazda\\Asztal\\samp03asvr_R4_win32\\filterscripts\\munka.pwn(63) : warning 215: expression has no effectC:\\Documents and Settings\\Rendszergazda\\Asztal\\samp03asvr_R4_win32\\filterscripts\\munka.pwn(66) : warning 217: loose indentationC:\\Documents and Settings\\Rendszergazda\\Asztal\\samp03asvr_R4_win32\\filterscripts\\munka.pwn(66) : error 017: undefined symbol \"row\"C:\\Documents and Settings\\Rendszergazda\\Asztal\\samp03asvr_R4_win32\\filterscripts\\munka.pwn(69) : error 002: only a single statement (or expression) can follow each \"case\"C:\\Documents and Settings\\Rendszergazda\\Asztal\\samp03asvr_R4_win32\\filterscripts\\munka.pwn(69) : warning 215: expression has no effectC:\\Documents and Settings\\Rendszergazda\\Asztal\\samp03asvr_R4_win32\\filterscripts\\munka.pwn(73) : warning 209: function \"OnPlayerCommandText\" should return a valueC:\\Documents and Settings\\Rendszergazda\\Asztal\\samp03asvr_R4_win32\\filterscripts\\munka.pwn(74) : error 010: invalid function or declarationC:\\Documents and Settings\\Rendszergazda\\Asztal\\samp03asvr_R4_win32\\filterscripts\\munka.pwn(76) : error 010: invalid function or declarationC:\\Documents and Settings\\Rendszergazda\\Asztal\\samp03asvr_R4_win32\\filterscripts\\munka.pwn(79) : error 010: invalid function or declarationC:\\Documents and Settings\\Rendszergazda\\Asztal\\samp03asvr_R4_win32\\filterscripts\\munka.pwn(81) : error 010: invalid function or declarationC:\\Documents and Settings\\Rendszergazda\\Asztal\\samp03asvr_R4_win32\\filterscripts\\munka.pwn(85) : error 010: invalid function or declarationC:\\Documents and Settings\\Rendszergazda\\Asztal\\samp03asvr_R4_win32\\filterscripts\\munka.pwn(87) : error 010: invalid function or declarationC:\\Documents and Settings\\Rendszergazda\\Asztal\\samp03asvr_R4_win32\\filterscripts\\munka.pwn(91) : error 010: invalid function or declarationC:\\Documents and Settings\\Rendszergazda\\Asztal\\samp03asvr_R4_win32\\filterscripts\\munka.pwn(93) : error 010: invalid function or declarationC:\\Documents and Settings\\Rendszergazda\\Asztal\\samp03asvr_R4_win32\\filterscripts\\munka.pwn(97) : error 010: invalid function or declarationC:\\Documents and Settings\\Rendszergazda\\Asztal\\samp03asvr_R4_win32\\filterscripts\\munka.pwn(99) : error 010: invalid function or declarationC:\\Documents and Settings\\Rendszergazda\\Asztal\\samp03asvr_R4_win32\\filterscripts\\munka.pwn(103) : error 010: invalid function or declaration
#include <a_samp>new Menu:munkak;public OnFilterScriptInit() { munkak = CreateMenu(\"munkak\", 2, 55.0, 200.0, 100.0, 80.0); AddMenuItem(munkak, 0, \"Taxis\"); AddMenuItem(munkak, 0, \"Rendor\"); AddMenuItem(munkak, 0, \"Mentos\"); AddMenuItem(munkak, 0, \"Tuzoltó\"); AddMenuItem(munkak, 0, \"Katona\"); AddMenuItem(munkak, 0, \"Testor\"); AddMenuItem(munkak, 0, \"Pilóta\"); return 1;}public OnFilterScriptExit() { return 1;}public OnPlayerCommandText(playerid, cmdtext[]){ if (strcmp(\"/munkak\", cmdtext, true, 10) == 0) { ShowMenuForPlayer(playerid,munkak); return 1;}public OnPlayerSelectedMenuRow(playerid, row){new Menu:current; current = GetPlayerMenu(playerid); if(current == munkak) { switch(row) { case 0:SetPlayerPos(playerid,-1559.5809,1223.1504,7.1846); SetPlayerSkin(playerid,142); GivePlayerWeapon(playerid,5,1); } switch(row) { case 1:SetPlayerPos(playerid,2286.5547,2428.8687,10.8203); SetPlayerSkin(playerid,280); GivePlayerWeapon(playerid,3,1); GivePlayerWeapon(playerid,24,500); GivePlayerWeapon(playerid,25,10); } switch(row) { case 2:SetPlayerPos(playerid,-2647.0623,606.8253,14.4531); SetPlayerSkin(playerid,274); } switch(row) { case 3:SetPlayerPos(playerid,-2014.4716,87.8016,27.6875); GivePlayerWeapon(playerid,42,1); SetPlayerSkin(playerid,277); } switch(row) } case 4:SetPlayerPos(playerid,207.0975,1918.2472,17.6406); SetPlayerSkin(playerid,287); GivePlayerWeapon(playerid,31,1000); } switch(row) } case 5:SetPlayerPos(playerid,2028.0447,1006.7173,10.8203); GivePlayerWeapon(playerid,28,1000); SetPlayerSkin(playerid,163); } switch(row) } case 6:SetPlayerPos(playerid,1328.2408,1454.8300,10.8203); SetPlayerSkin(playerid,253); } } return 1;}
case 3:SetPlayerPos(playerid,-2014.4716,87.8016,27.6875); GivePlayerWeapon(playerid,42,1); SetPlayerSkin(playerid,277);
case 3: SetPlayerPos(playerid,-2014.4716,87.8016,27.6875), GivePlayerWeapon(playerid,42,1), SetPlayerSkin(playerid,277);
Vagy egyszerubben :case 3:{SetPlayerPos(playerid,-2014.4716,87.8016,27.6875); GivePlayerWeapon(playerid,42,1); SetPlayerSkin(playerid,277); }
Vagy egyszerubben :case 3:{SetPlayerPos(playerid,-2014.4716,87.8016,27.6875); GivePlayerWeapon(playerid,42,1); SetPlayerSkin(playerid,277); } De errorozni fog. Csak az utolsó függvény után kell ; [/quote] Kezdjük ott hogy...Ez helytelen: case 3:SetPlayerPos(playerid,-2014.4716,87.8016,27.6875); GivePlayerWeapon(playerid,42,1); SetPlayerSkin(playerid,277); Ez a jó: case 3: SetPlayerPos(playerid,-2014.4716,87.8016,27.6875), GivePlayerWeapon(playerid,42,1), SetPlayerSkin(playerid,277); Miért?: mert ha több függvényt raksz akkor vesszot(,) kell rakni és a legutólsó függvény után ragd ezt: ; [/quote]Nem kell vesszo... Am ez a példa is rossz.Esetleg: case 0: { SetPlayerPos(playerid,-1559.5809,1223.1504,7.1846); SetPlayerSkin(playerid,142); GivePlayerWeapon(playerid,5,1); } Egy blokkot meg kell nytni, valamint lezárni. Minden public függvény után is kell nyitni egy blokkot, blokk nyitáshoz ez a jel kell: {Blokk záráshoz: }Nem tudom mi az érthetetlen ezen.Alien a te tutorialod teljesen rossz...Megírtam 0 error 0 warning: #include <a_samp>new Menu:munkak;public OnFilterScriptInit(){munkak = CreateMenu(\"munkak\", 2, 55.0, 200.0, 100.0, 80.0); AddMenuItem(munkak, 0, \"Taxis\"); AddMenuItem(munkak, 0, \"Rendor\"); AddMenuItem(munkak, 0, \"Mentos\"); AddMenuItem(munkak, 0, \"Tuzoltó\"); AddMenuItem(munkak, 0, \"Katona\"); AddMenuItem(munkak, 0, \"Testor\"); AddMenuItem(munkak, 0, \"Pilóta\"); print(\"\\n--------------------------------------\"); print(\" Munka szkript\"); print(\"--------------------------------------\\n\"); return 1;}public OnFilterScriptExit(){ return 1;}public OnPlayerCommandText(playerid, cmdtext[]){ if (strcmp(\"/munkak\", cmdtext, true, 10) == 0) { ShowMenuForPlayer(munkak,playerid); return 1; } return 0;}public OnPlayerSelectedMenuRow(playerid, row){new Menu:current = GetPlayerMenu(playerid); if(current == munkak) {switch(row){ case 0: { SetPlayerPos(playerid,-1559.5809,1223.1504,7.1846); SetPlayerSkin(playerid,142); GivePlayerWeapon(playerid,5,1); } case 1: { SetPlayerPos(playerid,2286.5547,2428.8687,10.8203); SetPlayerSkin(playerid,280); GivePlayerWeapon(playerid,3,1); GivePlayerWeapon(playerid,24,500); GivePlayerWeapon(playerid,25,10); } case 2: { SetPlayerPos(playerid,-2647.0623,606.8253,14.4531); SetPlayerSkin(playerid,274); } case 3: { SetPlayerPos(playerid,-2014.4716,87.8016,27.6875); GivePlayerWeapon(playerid,42,1); SetPlayerSkin(playerid,277); } case 4: { SetPlayerPos(playerid,207.0975,1918.2472,17.6406); SetPlayerSkin(playerid,287); GivePlayerWeapon(playerid,31,1000); } case 5: { SetPlayerPos(playerid,2028.0447,1006.7173,10.8203); GivePlayerWeapon(playerid,28,1000); SetPlayerSkin(playerid,163); } case 6: { SetPlayerPos(playerid,1328.2408,1454.8300,10.8203); SetPlayerSkin(playerid,253); } } } return 1;} Szivesen...
Kezdjük ott hogy...Ez helytelen: case 3:SetPlayerPos(playerid,-2014.4716,87.8016,27.6875); GivePlayerWeapon(playerid,42,1); SetPlayerSkin(playerid,277); Ez a jó: case 3: SetPlayerPos(playerid,-2014.4716,87.8016,27.6875), GivePlayerWeapon(playerid,42,1), SetPlayerSkin(playerid,277); Miért?: mert ha több függvényt raksz akkor vesszot(,) kell rakni és a legutólsó függvény után ragd ezt: ; [/quote]Nem kell vesszo... Am ez a példa is rossz.Esetleg: case 0: { SetPlayerPos(playerid,-1559.5809,1223.1504,7.1846); SetPlayerSkin(playerid,142); GivePlayerWeapon(playerid,5,1); } Egy blokkot meg kell nytni, valamint lezárni. Minden public függvény után is kell nyitni egy blokkot, blokk nyitáshoz ez a jel kell: {Blokk záráshoz: }Nem tudom mi az érthetetlen ezen.Alien a te tutorialod teljesen rossz...Megírtam 0 error 0 warning: #include <a_samp>new Menu:munkak;public OnFilterScriptInit(){munkak = CreateMenu(\"munkak\", 2, 55.0, 200.0, 100.0, 80.0); AddMenuItem(munkak, 0, \"Taxis\"); AddMenuItem(munkak, 0, \"Rendor\"); AddMenuItem(munkak, 0, \"Mentos\"); AddMenuItem(munkak, 0, \"Tuzoltó\"); AddMenuItem(munkak, 0, \"Katona\"); AddMenuItem(munkak, 0, \"Testor\"); AddMenuItem(munkak, 0, \"Pilóta\"); print(\"\\n--------------------------------------\"); print(\" Munka szkript\"); print(\"--------------------------------------\\n\"); return 1;}public OnFilterScriptExit(){ return 1;}public OnPlayerCommandText(playerid, cmdtext[]){ if (strcmp(\"/munkak\", cmdtext, true, 10) == 0) { ShowMenuForPlayer(munkak,playerid); return 1; } return 0;}public OnPlayerSelectedMenuRow(playerid, row){new Menu:current = GetPlayerMenu(playerid); if(current == munkak) {switch(row){ case 0: { SetPlayerPos(playerid,-1559.5809,1223.1504,7.1846); SetPlayerSkin(playerid,142); GivePlayerWeapon(playerid,5,1); } case 1: { SetPlayerPos(playerid,2286.5547,2428.8687,10.8203); SetPlayerSkin(playerid,280); GivePlayerWeapon(playerid,3,1); GivePlayerWeapon(playerid,24,500); GivePlayerWeapon(playerid,25,10); } case 2: { SetPlayerPos(playerid,-2647.0623,606.8253,14.4531); SetPlayerSkin(playerid,274); } case 3: { SetPlayerPos(playerid,-2014.4716,87.8016,27.6875); GivePlayerWeapon(playerid,42,1); SetPlayerSkin(playerid,277); } case 4: { SetPlayerPos(playerid,207.0975,1918.2472,17.6406); SetPlayerSkin(playerid,287); GivePlayerWeapon(playerid,31,1000); } case 5: { SetPlayerPos(playerid,2028.0447,1006.7173,10.8203); GivePlayerWeapon(playerid,28,1000); SetPlayerSkin(playerid,163); } case 6: { SetPlayerPos(playerid,1328.2408,1454.8300,10.8203); SetPlayerSkin(playerid,253); } } } return 1;} Szivesen...
case 0: { SetPlayerPos(playerid,-1559.5809,1223.1504,7.1846); SetPlayerSkin(playerid,142); GivePlayerWeapon(playerid,5,1); }
#include <a_samp>new Menu:munkak;public OnFilterScriptInit(){munkak = CreateMenu(\"munkak\", 2, 55.0, 200.0, 100.0, 80.0); AddMenuItem(munkak, 0, \"Taxis\"); AddMenuItem(munkak, 0, \"Rendor\"); AddMenuItem(munkak, 0, \"Mentos\"); AddMenuItem(munkak, 0, \"Tuzoltó\"); AddMenuItem(munkak, 0, \"Katona\"); AddMenuItem(munkak, 0, \"Testor\"); AddMenuItem(munkak, 0, \"Pilóta\"); print(\"\\n--------------------------------------\"); print(\" Munka szkript\"); print(\"--------------------------------------\\n\"); return 1;}public OnFilterScriptExit(){ return 1;}public OnPlayerCommandText(playerid, cmdtext[]){ if (strcmp(\"/munkak\", cmdtext, true, 10) == 0) { ShowMenuForPlayer(munkak,playerid); return 1; } return 0;}public OnPlayerSelectedMenuRow(playerid, row){new Menu:current = GetPlayerMenu(playerid); if(current == munkak) {switch(row){ case 0: { SetPlayerPos(playerid,-1559.5809,1223.1504,7.1846); SetPlayerSkin(playerid,142); GivePlayerWeapon(playerid,5,1); } case 1: { SetPlayerPos(playerid,2286.5547,2428.8687,10.8203); SetPlayerSkin(playerid,280); GivePlayerWeapon(playerid,3,1); GivePlayerWeapon(playerid,24,500); GivePlayerWeapon(playerid,25,10); } case 2: { SetPlayerPos(playerid,-2647.0623,606.8253,14.4531); SetPlayerSkin(playerid,274); } case 3: { SetPlayerPos(playerid,-2014.4716,87.8016,27.6875); GivePlayerWeapon(playerid,42,1); SetPlayerSkin(playerid,277); } case 4: { SetPlayerPos(playerid,207.0975,1918.2472,17.6406); SetPlayerSkin(playerid,287); GivePlayerWeapon(playerid,31,1000); } case 5: { SetPlayerPos(playerid,2028.0447,1006.7173,10.8203); GivePlayerWeapon(playerid,28,1000); SetPlayerSkin(playerid,163); } case 6: { SetPlayerPos(playerid,1328.2408,1454.8300,10.8203); SetPlayerSkin(playerid,253); } } } return 1;}
#include <a_samp>new Menu:munkak;public OnFilterScriptInit(){munkak = CreateMenu(\"munkak\", 2, 55.0, 200.0, 100.0, 80.0); AddMenuItem(munkak, 0, \"Taxis\"); AddMenuItem(munkak, 0, \"Rendor\"); AddMenuItem(munkak, 0, \"Mentos\"); AddMenuItem(munkak, 0, \"Tuzoltó\"); AddMenuItem(munkak, 0, \"Katona\"); AddMenuItem(munkak, 0, \"Testor\"); AddMenuItem(munkak, 0, \"Pilóta\"); print(\"\\n--------------------------------------\"); print(\" Munka szkript\"); print(\"--------------------------------------\\n\"); return 1;}public OnFilterScriptExit(){ return 1;}public OnPlayerCommandText(playerid, cmdtext[]){ if (strcmp(\"/munkak\", cmdtext, true, 10) == 0) { ShowMenuForPlayer(munkak,playerid); return 1; } return 0;}public OnPlayerSelectedMenuRow(playerid, row){new string[128];new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid,pname,sizeof(pname));new Menu:current = GetPlayerMenu(playerid); if(current == munkak) {switch(row){ case 0: { format(string,sizeof(string),\"%s Taxisnak állt.\",pname); SendClientMessageToAll(0x33AA33AA,string); SetPlayerPos(playerid,-1559.5809,1223.1504,7.1846); SetPlayerSkin(playerid,142); GivePlayerWeapon(playerid,5,1); } case 1: { format(string,sizeof(string),\"%s Rendornek állt.\",pname); SendClientMessageToAll(0x33AA33AA,string); SetPlayerPos(playerid,2286.5547,2428.8687,10.8203); SetPlayerSkin(playerid,280); GivePlayerWeapon(playerid,3,1); GivePlayerWeapon(playerid,24,500); GivePlayerWeapon(playerid,25,10); } case 2: { format(string,sizeof(string),\"%s Mnetosnek állt.\",pname); SendClientMessageToAll(0x33AA33AA,string); SetPlayerPos(playerid,-2647.0623,606.8253,14.4531); SetPlayerSkin(playerid,274); } case 3: { format(string,sizeof(string),\"%s Tuzoltónak állt.\",pname); SendClientMessageToAll(0x33AA33AA,string); SetPlayerPos(playerid,-2014.4716,87.8016,27.6875); GivePlayerWeapon(playerid,42,1); SetPlayerSkin(playerid,277); } case 4: { format(string,sizeof(string),\"%s Katonának állt.\",pname); SendClientMessageToAll(0x33AA33AA,string); SetPlayerPos(playerid,207.0975,1918.2472,17.6406); SetPlayerSkin(playerid,287); GivePlayerWeapon(playerid,31,1000); } case 5: { format(string,sizeof(string),\"%s Testornek állt.\",pname); SendClientMessageToAll(0x33AA33AA,string); SetPlayerPos(playerid,2028.0447,1006.7173,10.8203); GivePlayerWeapon(playerid,28,1000); SetPlayerSkin(playerid,163); } case 6: { format(string,sizeof(string),\"%s Pilótának állt.\",pname); SendClientMessageToAll(0x33AA33AA,string); SetPlayerPos(playerid,1328.2408,1454.8300,10.8203); SetPlayerSkin(playerid,253); } } } return 1;}
köszi,0 error,viszont beírom hogy /munkak nemtörténik semmi. \ :\'(
lehet túl sok fs van benn?