#include <a_samp>#include <zcmd>#define COLOR_RED 0xff0000AA#define COLOR_BLUE 0x0022ffAA#define COLOR_WHITESMOKE 0x999191AA#define COLOR_YELLOW 0xe0c70bAA CMD:munkahelp(playerid, params[]){if(GetPVarInt(playerid,\"Leaderes\") == 0){SendClientMessage(playerid, COLOR_BLUE, \"Nem vagy egy frakció tagja sem!\");}switch(GetPVarInt(playerid,\"Leaderes\")){case 1,2,3,4:SendClientMessage(playerid,COLOR_RED,\"Parancsok:\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/szolgalat,/lecsuk ID Idõ,\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/cipel,/bilincs ID,/letesz\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/szogesdrot,/szogesdrotfel,/letesz\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/rendorfelhivas,/pc,/felvesz,/kirug\");case 5,6,7:SendClientMessage(playerid,COLOR_RED,\"Parancsok:\") SendClientMessage(playerid,COLOR_WHITESMOKE,\"/r,/rc,\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/felvesz,/kirug,\"); case 8,9,10: SendClientMessage(playerid,COLOR_RED,\"Parancsok:\") SendClientMessage(playerid,COLOR_WHITESMOKE,\"/felvesz,/kirug,\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/gyogyit,/mc,\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/cipel,/berak,/letesz\"); case 11,12,13: SendClientMessage(playerid,COLOR_RED,\"Parancsok:\") SendClientMessage(playerid,COLOR_WHITESMOKE,\"/felvesz,/kirug,/szc\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/kalapacs,/csavarhuzo,\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/megszerel,/lefest,\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/targyeltesz,\"); case 14,15,16: SendClientMessage(playerid,COLOR_RED,\"Parancsok:\") SendClientMessage(playerid,COLOR_WHITESMOKE,\"/felvesz,/kirug,/oc\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/vizsgaztat ID,/kressz ID,/elsosegely ID\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/jogsiad ID\"); }return 1;}
C:\\Users\\Krisz\\Desktop\\pawno\\FTRP\\workhelp.pwn(21) : error 002: only a single statement (or expression) can follow each \"case\"C:\\Users\\Krisz\\Desktop\\pawno\\FTRP\\workhelp.pwn(21) : warning 215: expression has no effectC:\\Users\\Krisz\\Desktop\\pawno\\FTRP\\workhelp.pwn(25) : error 014: invalid statement; not in switchC:\\Users\\Krisz\\Desktop\\pawno\\FTRP\\workhelp.pwn(25) : warning 215: expression has no effectC:\\Users\\Krisz\\Desktop\\pawno\\FTRP\\workhelp.pwn(25) : warning 215: expression has no effectC:\\Users\\Krisz\\Desktop\\pawno\\FTRP\\workhelp.pwn(25) : warning 215: expression has no effectC:\\Users\\Krisz\\Desktop\\pawno\\FTRP\\workhelp.pwn(25) : error 001: expected token: \";\", but found \":\"C:\\Users\\Krisz\\Desktop\\pawno\\FTRP\\workhelp.pwn(25) : error 029: invalid expression, assumed zeroC:\\Users\\Krisz\\Desktop\\pawno\\FTRP\\workhelp.pwn(25) : fatal error 107: too many error messages on one line
#include <a_samp>#include <zcmd>#define COLOR_RED 0xff0000AA#define COLOR_BLUE 0x0022ffAA#define COLOR_WHITESMOKE 0x999191AA#define COLOR_YELLOW 0xe0c70bAA CMD:munkahelp(playerid, params[]){if(GetPVarInt(playerid,\"Leaderes\") == 0){SendClientMessage(playerid, COLOR_BLUE, \"Nem vagy egy frakció tagja sem!\");}switch(GetPVarInt(playerid,\"Leaderes\")){case 1,2,3,4: { SendClientMessage(playerid,COLOR_RED,\"Parancsok:\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/szolgalat,/lecsuk ID Idõ,\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/cipel,/bilincs ID,/letesz\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/szogesdrot,/szogesdrotfel,/letesz\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/rendorfelhivas,/pc,/felvesz,/kirug\"); }case 5,6,7: { SendClientMessage(playerid,COLOR_RED,\"Parancsok:\") SendClientMessage(playerid,COLOR_WHITESMOKE,\"/r,/rc,\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/felvesz,/kirug,\"); } case 8,9,10: { SendClientMessage(playerid,COLOR_RED,\"Parancsok:\") SendClientMessage(playerid,COLOR_WHITESMOKE,\"/felvesz,/kirug,\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/gyogyit,/mc,\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/cipel,/berak,/letesz\"); } case 11,12,13: { SendClientMessage(playerid,COLOR_RED,\"Parancsok:\") SendClientMessage(playerid,COLOR_WHITESMOKE,\"/felvesz,/kirug,/szc\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/kalapacs,/csavarhuzo,\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/megszerel,/lefest,\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/targyeltesz,\"); } case 14,15,16: { SendClientMessage(playerid,COLOR_RED,\"Parancsok:\") SendClientMessage(playerid,COLOR_WHITESMOKE,\"/felvesz,/kirug,/oc\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/vizsgaztat ID,/kressz ID,/elsosegely ID\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/jogsiad ID\"); } }return 1;}
CMD:munkahelp(playerid, params[]){if(GetPVarInt(playerid,\"Leaderes\") == 0){SendClientMessage(playerid, COLOR_BLUE, \"Nem vagy egy frakció tagja sem!\");}switch(GetPVarInt(playerid,\"Leaderes\")){case 1..4:{SendClientMessage(playerid,COLOR_RED,\"Parancsok:\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/szolgalat,/lecsuk ID Idõ,\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/cipel,/bilincs ID,/letesz\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/szogesdrot,/szogesdrotfel,/letesz\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/rendorfelhivas,/pc,/felvesz,/kirug\"); }case 5..7:{SendClientMessage(playerid,COLOR_RED,\"Parancsok:\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/r,/rc,\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/felvesz,/kirug,\"); } case 8..10:{ SendClientMessage(playerid,COLOR_RED,\"Parancsok:\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/felvesz,/kirug,\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/gyogyit,/mc,\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/cipel,/berak,/letesz\"); } case 11..13:{ SendClientMessage(playerid,COLOR_RED,\"Parancsok:\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/felvesz,/kirug,/szc\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/kalapacs,/csavarhuzo,\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/megszerel,/lefest,\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/targyeltesz,\"); } case 14..16:{ SendClientMessage(playerid,COLOR_RED,\"Parancsok:\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/felvesz,/kirug,/oc\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/vizsgaztat ID,/kressz ID,/elsosegely ID\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/jogsiad ID\"); } }return 1;}
#include <a_samp>#include <zcmd>#define COLOR_RED 0xff0000AA#define COLOR_BLUE 0x0022ffAA#define COLOR_WHITESMOKE 0x999191AA#define COLOR_YELLOW 0xe0c70bAA CMD:munkahelp(playerid, params[]){if(GetPVarInt(playerid,\"Leaderes\") == 0){SendClientMessage(playerid, COLOR_BLUE, \"Nem vagy egy frakció tagja sem!\");}switch(GetPVarInt(playerid,\"Leaderes\")){case 1..4: {SendClientMessage(playerid,COLOR_RED,\"Parancsok:\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/szolgalat,/lecsuk ID Idõ,\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/cipel,/bilincs ID,/letesz\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/szogesdrot,/szogesdrotfel,/letesz\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/rendorfelhivas,/pc,/felvesz,/kirug\"); }case 5..7: {SendClientMessage(playerid,COLOR_RED,\"Parancsok:\") SendClientMessage(playerid,COLOR_WHITESMOKE,\"/r,/rc,\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/felvesz,/kirug,\"); } case 8..10: { SendClientMessage(playerid,COLOR_RED,\"Parancsok:\") SendClientMessage(playerid,COLOR_WHITESMOKE,\"/felvesz,/kirug,\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/gyogyit,/mc,\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/cipel,/berak,/letesz\"); } case 11..13: { SendClientMessage(playerid,COLOR_RED,\"Parancsok:\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/felvesz,/kirug,/szc\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/kalapacs,/csavarhuzo,\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/megszerel,/lefest,\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/targyeltesz,\"); } case 14..16: { SendClientMessage(playerid,COLOR_RED,\"Parancsok:\") SendClientMessage(playerid,COLOR_WHITESMOKE,\"/felvesz,/kirug,/oc\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/vizsgaztat ID,/kressz ID,/elsosegely ID\"); SendClientMessage(playerid,COLOR_WHITESMOKE,\"/jogsiad ID\"); } }return 1;}