if(!strcmp(cmdtext, \"/simon\", true)) if(gTeam[playerid] == TEAM_VEDOK) {if(vip == 1) SendClientMessage(playerid,COLOR_RED,\"Már van egy Simon!\"); else if(vip == 0) SendClientMessage(playerid,COLOR_LIME,\"Elvállaltad a munkát, mostantól te vagy a Simon, a te utasításaidat követik!\"); SetPlayerTeam(playerid, TEAM_VIP);} else { SendClientMessage(playerid,COLOR_RED,\"Csak fegyõrök használhatják ezt a parancsot!\"); return 1;}
if(!strcmp(cmdtext, \"/simon\", true)) if(gTeam[playerid] == TEAM_VEDOK) { for(new i; i < MAX_PLAYERS; i++){ if(vip == 1) { SendClientMessage(playerid,COLOR_RED,\"Már van egy Simon!\"); } else if(vip == 0) { SendClientMessage(playerid,COLOR_LIME,\"Elvállaltad a munkát, mostantól te vagy a Simon, a te utasításaidat követik!\"); SetPlayerTeam(playerid, TEAM_VIP); } else { SendClientMessage(playerid,COLOR_RED,\"Csak fegyõrök használhatják ezt a parancsot!\"); } return 1; } }
if(vip == 1)
C:\\Documents and Settings\\Hazor\\Asztal\\Szerver mappa\\gamemodes\\jb.pwn(340) : error 028: invalid subscript (not an array or too many subscripts): \"vip\"C:\\Documents and Settings\\Hazor\\Asztal\\Szerver mappa\\gamemodes\\jb.pwn(340) : warning 215: expression has no effectC:\\Documents and Settings\\Hazor\\Asztal\\Szerver mappa\\gamemodes\\jb.pwn(340) : error 001: expected token: \";\", but found \"]\"C:\\Documents and Settings\\Hazor\\Asztal\\Szerver mappa\\gamemodes\\jb.pwn(340) : error 029: invalid expression, assumed zeroC:\\Documents and Settings\\Hazor\\Asztal\\Szerver mappa\\gamemodes\\jb.pwn(340) : fatal error 107: too many error messages on one line
köszi a választ de sajnos hibás if(vip == 1) C:\\Documents and Settings\\Hazor\\Asztal\\Szerver mappa\\gamemodes\\jb.pwn(340) : error 028: invalid subscript (not an array or too many subscripts): \"vip\"C:\\Documents and Settings\\Hazor\\Asztal\\Szerver mappa\\gamemodes\\jb.pwn(340) : warning 215: expression has no effectC:\\Documents and Settings\\Hazor\\Asztal\\Szerver mappa\\gamemodes\\jb.pwn(340) : error 001: expected token: \";\", but found \"]\"C:\\Documents and Settings\\Hazor\\Asztal\\Szerver mappa\\gamemodes\\jb.pwn(340) : error 029: invalid expression, assumed zeroC:\\Documents and Settings\\Hazor\\Asztal\\Szerver mappa\\gamemodes\\jb.pwn(340) : fatal error 107: too many error messages on one line [/quote]new vip;csere:new vip[MAX_PLAYERS];
else if(vip[playerid] == 0 && gTeam[playerid] == TEAM_VIP) vip[playerid] == 1;
else if(vip[playerid] == 0 && gTeam[playerid] == TEAM_VIP) { vip[playerid] == 1; }
if(strcmp(cmdtext, \"/nyit\", true) == 0) if(gTeam[playerid] == TEAM_VIP) { MoveObject(cella,-1007.0999800,-1040.4000200,136.6000100,5); MoveObject(cella2,-1007.2999900,-1046.0999800,136.6000100,5); MoveObject(cella3,-1007.5000000,-1051.9000200,136.6000100,5); MoveObject(cella4,-1007.4000200,-1058.1999500,136.5000000,5); } else {SendClientMessage(playerid,COLOR_RED,\"Csak a Simon használhatja ezt a parancsot!\");return 1;} if(strcmp(cmdtext, \"/zar\", true) == 0) if(gTeam[playerid] == TEAM_VIP) { MoveObject(cella,-1007.0999800,-1040.4000200,130.8000000,5); MoveObject(cella2,-1007.2999900,-1046.0999800,130.8000000,5); MoveObject(cella3,-1007.5000000,-1051.9000200,130.8000000,5); MoveObject(cella4,-1007.4000200,-1058.1999500,130.8000000,5);} else {SendClientMessage(playerid,COLOR_RED,\"Csak a Simon használhatja ezt a parancsot!\");return 1;}
if(!strcmp(cmdtext, \"/simon\", true)){if(gTeam[playerid] == TEAM_VEDOK) { if(vip == 1) SendClientMessage(playerid,COLOR_RED,\"Már van egy Simon!\"); else if(vip == 0) { SendClientMessage(playerid,COLOR_LIME,\"Elvállaltad a munkát, mostantól te vagy a Simon, a te utasításaidat követik!\"); SetPlayerTeam(playerid, TEAM_VIP); vip = 1; }} else SendClientMessage(playerid,COLOR_RED,\"Csak fegyõrök használhatják ezt a parancsot!\");return 1;}
new vip[MAX_PLAYERS];
new vip;
if(strcmp(cmdtext, \"/nyit\", true) == 0) if(vip == 1) { MoveObject(cella,-1007.0999800,-1040.4000200,136.6000100,5); MoveObject(cella2,-1007.2999900,-1046.0999800,136.6000100,5); MoveObject(cella3,-1007.5000000,-1051.9000200,136.6000100,5); MoveObject(cella4,-1007.4000200,-1058.1999500,136.5000000,5); } else {SendClientMessage(playerid,COLOR_RED,\"Csak a Simon használhatja ezt a parancsot!\");return 1;}if(strcmp(cmdtext, \"/zar\", true) == 0)if(vip == 1) { MoveObject(cella,-1007.0999800,-1040.4000200,130.8000000,5); MoveObject(cella2,-1007.2999900,-1046.0999800,130.8000000,5); MoveObject(cella3,-1007.5000000,-1051.9000200,130.8000000,5); MoveObject(cella4,-1007.4000200,-1058.1999500,130.8000000,5);} else {SendClientMessage(playerid,COLOR_RED,\"Csak a Simon használhatja ezt a parancsot!\");return 1;}