10.02.2011, 16:53
Esse CMD buga todo o GM!
Sem ele sу da 1 warning e com ele o GM interiro da erro...
Comando:
Alguem pode me ajuda?
Sem ele sу da 1 warning e com ele o GM interiro da erro...
Comando:
Code:
if (strcmp(cmd, "/atualizarcarro", true) == 0) { if(IsPlayerConnected(playerid)) { new house = PlayerInfo[playerid][pPhousekey]; GetPlayerName(playerid, playername, sizeof(playername)); if (house != 255 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPHousekey]][hOwner], true) == 0) { new gunid[16]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GREEN,"______________________________________"); SendClientMessage(playerid, COLOR_YELLOW,"*** Atualizaзгo mobiliбria ***"); format(string, sizeof(string), "USO: /atualizarcarro [nome]"); SendClientMessage(playerid, COLOR_GREEN,string); if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_BRONZE, "Bronze: Greenwood - Grendale - Emperor - Elegant - Blistacompact - Clover - Stratum - Sabre - Uranus"); SendClientMessage(playerid, COLOR_BRONZE, "Bronze: Landstalker - Merit - Nebula - Tahoma - Hermes - Stallion - Sunrise - Yosemite - Sanchez"); SendClientMessage(playerid, COLOR_BRONZE, "Bronze: Admiral - Blade - Savanna - Buccanee - Pony - Elegant - Esperant - Feltze - PCJ600 - Huntley"); SendClientMessage(playerid, COLOR_BRONZE, "Bronze: Regina - Remington - Solair - Vincent - Virgo - Voodoo - Washing - Hustler - Peren - Rancher"); } if(PlayerInfo[playerid][pDonateRank] >= 2) { SendClientMessage(playerid, COLOR_SILVER, "Silver: Alpha - Banshee - Bfinject - Broadway - Buffalo - Bullet - Cheetah - Club - Comet"); SendClientMessage(playerid, COLOR_SILVER, "Silver: Elegy - Euros - Flash - Infernus - Jester - Mesa - MonsterB - Hotring - Bandito"); SendClientMessage(playerid, COLOR_SILVER, "Silver: Sultan - Supergt - Turismo - Windsor - Zr350 - Fcr-900 - Phoenix - Sentinel"); if(PlayerInfo[playerid][pDonateRank] >= 3) { SendClientMessage(playerid, COLOR_GOLD, "Gold: Hotknife - Bandito - MonsterB - Hotring - Nrg-500 - Quad"); } SendClientMessage(playerid, COLOR_LIGHTBLUE,"_______________________________________"); return 1; } strmid(gunid, tmp, 0, strlen(cmdtext), 255); if (GetPlayerMoneyEx(playerid) > 100000) { if(strcmp(gunid, "greenwood",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 492; } } else if(strcmp(gunid, "grendale",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 466; } else if(strcmp(gunid, "emperor",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 585; } else if(strcmp(gunid, "elegant",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 507; } else if(strcmp(gunid, "blistacompact",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 496; } else if(strcmp(gunid, "clover",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 542; } else if(strcmp(gunid, "stratum",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 561; } else if(strcmp(gunid, "sabre",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 475; } else if(strcmp(gunid, "uranus",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 558; } else if(strcmp(gunid, "huntley",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 579; } else if(strcmp(gunid, "landstalker",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 492; } else if(strcmp(gunid, "merit",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 551; } else if(strcmp(gunid, "nebula",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 516; } else if(strcmp(gunid, "tahoma",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 566; } else if(strcmp(gunid, "hermes",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 474; } else if(strcmp(gunid, "stallion",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 439; } else if(strcmp(gunid, "sunrise",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 550; } else if(strcmp(gunid, "yosemite",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 554; } else if(strcmp(gunid, "pcj600",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 461; } else if(strcmp(gunid, "admiral",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 445; } else if(strcmp(gunid, "blade",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 536; } else if(strcmp(gunid, "savanna",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 567; } else if(strcmp(gunid, "buccanee",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 518; } else if(strcmp(gunid, "pony",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 413; } else if(strcmp(gunid, "elegant",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 507; } else if(strcmp(gunid, "esperant",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 419; } else if(strcmp(gunid, "feltze",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 533; } else if(strcmp(gunid, "regina",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 479; } else if(strcmp(gunid, "remigton",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 534; } else if(strcmp(gunid, "solair",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 458; } else if(strcmp(gunid, "vincent",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 540; } else if(strcmp(gunid, "virgo",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 491; } else if(strcmp(gunid, "voodoo",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 412; } else if(strcmp(gunid, "washing",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 421; } else if(strcmp(gunid, "hustler",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 545; } else if(strcmp(gunid, "peren",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 404; } else if(strcmp(gunid, "rancher",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 505; } else if(strcmp(gunid, "washing",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 1) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 421; } // Silver else if(strcmp(gunid, "alpha",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Bronze!"); return 1; }else{ HouseInfo[house][hVec] = 602; } else if(strcmp(gunid, "banshee",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Silver!"); return 1; }else{ HouseInfo[house][hVec] = 429; } else if(strcmp(gunid, "bfinject",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Silver!"); return 1; }else{ HouseInfo[house][hVec] = 424; } else if(strcmp(gunid, "broadway",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Silver!"); return 1; }else{ HouseInfo[house][hVec] = 575; } else if(strcmp(gunid, "buffalo",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Silver!"); return 1; }else{ HouseInfo[house][hVec] = 402; } else if(strcmp(gunid, "bullet",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Silver!"); return 1; }else{ HouseInfo[house][hVec] = 541; } else if(strcmp(gunid, "cheetah",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Silver!"); return 1; }else{ HouseInfo[house][hVec] = 415; } else if(strcmp(gunid, "elegy",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Silver!"); return 1; }else{ HouseInfo[house][hVec] = 562; } else if(strcmp(gunid, "euros",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Silver!"); return 1; }else{ HouseInfo[house][hVec] = 587; } else if(strcmp(gunid, "flash",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Silver!"); return 1; }else{ HouseInfo[house][hVec] = 565; } else if(strcmp(gunid, "infernus",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Silver!"); return 1; }else{ HouseInfo[house][hVec] = 411; } else if(strcmp(gunid, "jester",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Silver!"); return 1; }else{ HouseInfo[house][hVec] = 559; } else if(strcmp(gunid, "mesa",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Silver!"); return 1; }else{ HouseInfo[house][hVec] = 500; } else if(strcmp(gunid, "phoenix",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Silver!"); return 1; }else{ HouseInfo[house][hVec] = 603; } else if(strcmp(gunid, "sentinel",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Silver!"); return 1; }else{ HouseInfo[house][hVec] = 405; } else if(strcmp(gunid, "club",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Silver!"); return 1; }else{ HouseInfo[house][hVec] = 589; } else if(strcmp(gunid, "comet",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Silver!"); return 1; }else{ HouseInfo[house][hVec] = 421; } else if(strcmp(gunid, "sultan",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Silver!"); return 1; }else{ HouseInfo[house][hVec] = 460; } else if(strcmp(gunid, "supergt",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Silver!"); return 1; }else{ HouseInfo[house][hVec] = 506; } else if(strcmp(gunid, "turismo",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Silver!"); return 1; }else{ HouseInfo[house][hVec] = 451; } else if(strcmp(gunid, "windsor",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Silver!"); return 1; }else{ HouseInfo[house][hVec] = 555; } else if(strcmp(gunid, "zr350",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Silver!"); return 1; }else{ HouseInfo[house][hVec] = 477; } else if(strcmp(gunid, "fcr-900",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 2) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Silver!"); return 1; }else{ HouseInfo[house][hVec] = 521; } // Gold else if(strcmp(gunid, "hotknife",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 3) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Gold!"); return 1; }else{ HouseInfo[house][hVec] = 434; } else if(strcmp(gunid, "bandito",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 3) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Gold!"); return 1; }else{ HouseInfo[house][hVec] = 568; } else if(strcmp(gunid, "monsterb",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 3) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Gold!"); return 1; }else{ HouseInfo[house][hVec] = 557; } else if(strcmp(gunid, "hotring",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 3) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Gold!"); return 1; }else{ HouseInfo[house][hVec] = 494; } else if(strcmp(gunid, "nrg-500",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 3) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Gold!"); return 1; }else{ HouseInfo[house][hVec] = 522; } else if(strcmp(gunid, "quad",true) == 0) { if(PlayerInfo[playerid][pDonateRank] >= 3) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й ViP Gold!"); return 1; }else{ HouseInfo[house][hVec] = 471; } else { SendClientMessage(playerid, COLOR_GRAD6, "ERRO 404 -- Indefinido | Contate um adm! Caso: 1"); return 1; } if(PlayerInfo[playerid][pDonateRank] == 1) { format(str, 256, "[RTG] Seu veнculo domiciliar й agora um %s", gunid); SendClientMessage(playerid, COLOR_WHITE, str); SendClientMessage(playerid, COLOR_GRAD6, "Seu carro serб entregue no prуximo GMX pelo preзo: R$ 100000"); GivePlayerGP(playerid,-100000); SBizzInfo[5][sbTill] += 100000; ExtortionSBiz(5, 100000); SBizzInfo[5][sbProducts]--; PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0); OnPropUpdate(); return 1; }else if(PlayerInfo[playerid][pDonateRank] == 2) format(str, 256, "[RTG] Seu veнculo domiciliar й agora um %s", gunid); SendClientMessage(playerid, COLOR_WHITE, str); SendClientMessage(playerid, COLOR_GRAD6, "Seu carro serб entregue no prуximo GMX pelo preзo: R$ 50000"); GivePlayerGP(playerid,-50000); SBizzInfo[5][sbTill] += 50000; ExtortionSBiz(5, 50000); SBizzInfo[5][sbProducts]--; PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0); OnPropUpdate(); return 1; { }else if(PlayerInfo[playerid][pDonateRank] == 3) format(str, 256, "[RTG] Seu veнculo domiciliar й agora um %s", gunid); SendClientMessage(playerid, COLOR_WHITE, str); SendClientMessage(playerid, COLOR_GRAD6, "Seu carro serб entregue no prуximo GMX"); SBizzInfo[5][sbTill] += 50000; ExtortionSBiz(5, 50000); SBizzInfo[5][sbProducts]--; PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0); OnPropUpdate(); return 1; { } else{ SendClientMessage(playerid, COLOR_GRAD6, "ERRO 404 -- Indefinido | Contate um adm! Caso: 2"); return 1; } } } else { SendClientMessage(playerid, COLOR_GRAD2, " Vocк nгo tem uma casa"); return 1; } } return 1; }