03.02.2013, 23:45
Yes again guys and i really want to say thank you very much from the last time helpping me fixing warnings and errors but i am having more now i been trying to fix etc them below you will see i have Dcmd errors and CMD errors i dont no if you can use ZCMD and Dcmd but also if you can,t use them both on one script can someone tell me how to convert them to ZCMD or do it for me please please please 

Code:
undefined symbol "dcmd" undefined symbol "dcmd" undefined symbol "dcmd" undefined symbol "dcmd" undefined symbol "dcmd" undefined symbol "dcmd_acceptrobbery" I Have got commands and also down below Onplayercommand stuff below dcmd(setuprobbery, 12, cmdtext); dcmd(acceptrobbery, 13, cmdtext); dcmd(inviterobbery, 13, cmdtext); dcmd(plantc4, 7, cmdtext); dcmd(setradio, 8, cmdtext); dcmd_acceptrobbery(playerid, params[]) { #pragma unused params if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][ROffered] > 0) { if(PlayerInfo[playerid][ROffered] == 1) { if(RobStatus[RobberID2] == 255) { RobStatus[RobberID2] = playerid; SendClientMessage(playerid, COLOR_YELLOW, "** You've joined the Bank Robbery"); PlayerInfo[playerid][Robbing] = 1; SendClientMessage(PlayerInfo[playerid][ROfferer], COLOR_YELLOW, "** You now have two members, get one more to blow the vault"); return 1; } else if(RobStatus[RobberID3] == 255) { RobStatus[RobberID3] = playerid; SendClientMessage(playerid, COLOR_YELLOW, "** You've joined the Bank Robbery"); PlayerInfo[playerid][Robbing] = 1; SendClientMessage(PlayerInfo[playerid][ROfferer], COLOR_YELLOW, "** You now have three members and can blow the vault"); SendClientMessage(PlayerInfo[playerid][ROfferer], COLOR_WHITE, "HINT: Use /plantc4 near the vault to start the robbery"); return 1; } else if(RobStatus[RobberID4] == 255) { RobStatus[RobberID4] = playerid; SendClientMessage(playerid, COLOR_YELLOW, "** You've joined the Bank Robbery"); PlayerInfo[playerid][Robbing] = 1; SendClientMessage(PlayerInfo[playerid][ROfferer], COLOR_YELLOW, "** You now have four members and can blow the vault"); SendClientMessage(PlayerInfo[playerid][ROfferer], COLOR_WHITE, "HINT: Use /plantc4 near the vault to start the robbery"); return 1; } else if(RobStatus[RobberID5] == 255) { RobStatus[RobberID5] = playerid; SendClientMessage(playerid, COLOR_YELLOW, "** You've joined the Bank Robbery"); PlayerInfo[playerid][Robbing] = 1; SendClientMessage(PlayerInfo[playerid][ROfferer], COLOR_YELLOW, "** You now have five members and can blow the vault"); SendClientMessage(PlayerInfo[playerid][ROfferer], COLOR_WHITE, "HINT: Use /plantc4 near the vault to start the robbery"); return 1; } else { SendClientMessage(playerid, COLOR_GREY, "There are already 5 people robbing the bank!"); SendClientMessage(PlayerInfo[playerid][ROfferer], COLOR_WHITE, "HINT: Use /plantc4 near the vault to start the robbery!"); return 1; } } } else { SendClientMessage(playerid, COLOR_GREY, "No one offered you an invite to the robbery!"); return 1; } } return 1; } dcmd_plantc4(playerid, params[]) { if(IsPlayerConnected(playerid)) { #pragma unused params if(IsPlayerConnected(playerid)) { if(RobStatus[Setup] == 0 && RobStatus[RobberID3] == 255) { SendClientMessage(playerid, COLOR_LIGHTRED, "** You cannot plant the C4 unless the robbery is setup"); return 1; } new str[126]; if(RobStatus[Setup] == 1) { if(IsPlayerInRangeOfPoint(playerid, 3, 2328.8223,-1919.2816,828.1979) && RobStatus[RobberID1] == playerid) { GivePlayerGun(playerid, 40); ApplyAnimation(playerid,"BOMBER","BOM_Plant",4.0,0,0,0,0,0); PlantedC4OnVault[playerid] = 1; format(str, sizeof(str), "** %s plants the C4 on the vault", PlayerName(playerid)); ProxDetector(30.0, playerid, str, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } else { SendClientMessage(playerid, COLOR_LIGHTRED, "** You cannot plant the C4, you're not the leader or at the vault"); return 1; } } else { return 1; } } } else { return 1; } return 1; } dcmd_loadcash(playerid, params[]) { #pragma unused params new str[126]; if(PlayerInfo[playerid][Robbing] == 1) { if(IsPlayerInRangeOfPoint(playerid,3.0,2327.0017,-1920.6960,828.1979)) { if(PlayerInfo[playerid][CashLoading] > 0) { SendClientMessage(playerid, COLOR_LIGHTRED, "** WAIT: You're already loading cash..."); return 1; } if(RobStatus[RobberID1] == playerid) { PlayerInfo[playerid][CashLoading] = 15; format(str, sizeof(str), "** %s begins loading the bag with cash...", PlayerName(playerid)); ProxDetector(30.0, playerid, str, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); OnePlayAnim(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0); // Place Bomb SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Wait here for 15 seconds while you load $10,000 into your bag..."); return 1; } if(RobStatus[RobberID2] == playerid) { PlayerInfo[playerid][CashLoading] = 15; format(str, sizeof(str), "** %s begins loading the bag with cash...", PlayerName(playerid)); ProxDetector(30.0, playerid, str, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); OnePlayAnim(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0); // Place Bomb SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Wait here for 15 seconds while you load $10,000 into your bag..."); return 1; } if(RobStatus[RobberID3] == playerid) { PlayerInfo[playerid][CashLoading] = 15; format(str, sizeof(str), "** %s begins loading the bag with cash...", PlayerName(playerid)); ProxDetector(30.0, playerid, str, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); OnePlayAnim(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0); // Place Bomb SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Wait here for 15 seconds while you load $10,000 into your bag..."); return 1; } if(RobStatus[RobberID4] == playerid) { PlayerInfo[playerid][CashLoading] = 15; format(str, sizeof(str), "** %s begins loading the bag with cash...", PlayerName(playerid)); ProxDetector(30.0, playerid, str, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); OnePlayAnim(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0); // Place Bomb SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Wait here for 15 seconds while you load $10,000 into your bag..."); return 1; } if(RobStatus[RobberID5] == playerid) { PlayerInfo[playerid][CashLoading] = 15; format(str, sizeof(str), "** %s begins loading the bag with cash...", PlayerName(playerid)); ProxDetector(30.0, playerid, str, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); OnePlayAnim(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0); // Place Bomb SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Wait here for 15 seconds while you load $10,000 into your bag..."); return 1; } } } else { SendClientMessage(playerid, COLOR_GREY, "You're currently not robbing the bank!"); return 1; } return 1; } dcmd_setuprobbery(playerid, params[]) { if(PlayerInfo[playerid][pMember] != 1 || PlayerInfo[playerid][pMember] != 2 || PlayerInfo[playerid][pMember] != 5 || PlayerInfo[playerid][pMember] != 7) { #pragma unused params if(IsPlayerConnected(playerid)) { if(BizzInfo[PlayerInfo[playerid][InBusiness]][bType] == 8) { for(new i = 0; i < MAX_PLAYERS; i++) { if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pMember] == 2) { LEOOnline += 1; } } if(PlayerInfo[playerid][pLevel] < 9) { SendClientMessage(playerid, COLOR_GREY, "You must be level 10 or higher to make a bank robbery!"); return 1; } /*if(LEOOnline <= 0) { SendClientMessage(playerid, COLOR_GREY, "There's not at least 4-5 LEOs on!"); return 1; }*/ if(RobStatus[BankReload] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Someone has robbed the bank recently!"); return 1; } if(RobStatus[BeingRobbed] == 1) { SendClientMessage(playerid, COLOR_GREY, "Someone is robbing the Bank!"); return 1; } if(PlayerInfo[playerid][pLevel] <= 7) { SendClientMessage(playerid, COLOR_GREY, "You must be at least a Level 8+ to setup a robbery!"); return 1; } if(RobStatus[Setup] == 0) { RobStatus[Setup] = 1; RobStatus[RobberID1] = playerid; RobbingBizID[playerid] = PlayerInfo[playerid][InBusiness]; PlayerInfo[playerid][Robbing] = 1; SendClientMessage(playerid,COLOR_YELLOW2, "** You've began setting up a robbery, get two more criminals to assist..."); SendClientMessage(playerid,COLOR_YELLOW2, "** You can then blow the vault. Type /robbers to see the current team"); } else { SendClientMessage(playerid, COLOR_GREY, "Someone is already setting up a robbery!"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "You're not inside the Bank!"); return 1; } } } else { SendClientMessage(playerid, COLOR_LIGHTRED, "You're a public official, you can't do that!"); return 1; } return 1; } dcmd_inviterobbery(playerid, params[]) { new id; if(IsPlayerConnected(playerid)) { if (sscanf(params, "u", id)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /inviterobbery [id]"); else if(id == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_GREY, "Invalid ID!"); else { if(PlayerInfo[playerid][Robbing] == 1 && RobStatus[RobberID1] == playerid) { if(PlayerInfo[id][pMember] != 1 || PlayerInfo[id][pMember] != 2 || PlayerInfo[id][pMember] != 5 || PlayerInfo[id][pMember] != 7) { if(PlayerInfo[id][Robbing] == 0) { PlayerInfo[id][ROffered] = 1; PlayerInfo[id][ROfferer] = playerid; SendClientMessage(id, COLOR_LIGHTBLUE, "** You've been invited to assist in the robbery of the Bank"); SendClientMessage(id, COLOR_LIGHTBLUE, "** Type '/acceptrobbery' to assist"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Invite sent"); return 1; } else { SendClientMessage(playerid, COLOR_GREY, "That person is already robbing!"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "That person is a Government Official!"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "You're not in charge of this robbery!"); return 1; } } } return 1; } #define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1