06.02.2011, 19:21
Olб pessoal,
Eu sou novo aqui, baixei alguns GMs para estudar, mas na hora que eu copilo da erro nesse CMD, eu sei disso, pois se eu tiro ele o GM copila, mas se dexo da erro no resto do GM, entгo por favor me ajudem...
Obrigado!
Eu sou novo aqui, baixei alguns GMs para estudar, mas na hora que eu copilo da erro nesse CMD, eu sei disso, pois se eu tiro ele o GM copila, mas se dexo da erro no resto do GM, entгo por favor me ajudem...
Code:
if (strcmp(cmd, "/atualizarcarro", true) == 0) { if(IsPlayerConnected(playerid)) { new house = PlayerInfo[playerid][pPhousekey]; GetPlayerName(playerid, playername, sizeof(playername)); new str[256]; if (house != 255) { if(strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) != 0 && strcmp(PlayerInfo[playerid][pMarriedTo], HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) != 0) { SendClientMessage(playerid, COLOR_GREY, " Vocк nгo tem uma casa !"); return 1; } new gunid[16]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GREEN,"______________________________________"); SendClientMessage(playerid, COLOR_WHITE,"*** Atualizaзгo mobiliбria ***"); format(string, sizeof(string), "USO: /atualizarcarro [nome]"); SendClientMessage(playerid, COLOR_WHITE,string); SendClientMessage(playerid, COLOR_GRAD3, "Carros: Grendale - Elegant - Blistacompact - Sabre - Uranus - Hotknife"); SendClientMessage(playerid, COLOR_GRAD3, "Carros: Landstalker - Yosemite - Admiral - Blade - PCJ600 - Bandito"); SendClientMessage(playerid, COLOR_GRAD3, "Carros: Remington - Voodoo - Washing - Hustler - Alpha - Club - Hotring"); SendClientMessage(playerid, COLOR_GRAD3, "Carros: Bfinject - Flash - Elegy - Rancher - Windsor - Sentinel"); if(PlayerInfo[playerid][pDonateRank] >= 2){ SendClientMessage(playerid, COLOR_YELLOW, "ViP: Savanna - Sultan - SuperGt - Turismo - Infernus - Jester - MonsterA"); SendClientMessage(playerid, COLOR_YELLOW, "ViP: MonsterB - Nrg500 - Quad - CheetahBuffalo - Phoenix - Sandking - Bullet");} SendClientMessage(playerid, COLOR_YELLOW, "ViP: Fcr900 - Zr350 - Comet - Banshee - Euros");} } SendClientMessage(playerid, COLOR_GREEN, "Para mais carros, contate um ADM. Obrigado."); return 1; } if(SBizzInfo[5][sbProducts] == 0) { GameTextForPlayer(playerid, "~r~fim de estoque", 5000, 1); return 1; } strmid(gunid, tmp, 0, strlen(cmdtext), 255); if(PlayerInfo[playerid][pDonateRank] == 1){ if(GetPlayerGP(playerid) >= 50000){ if(PlayerInfo[playerid][pDonateRank] >= 1){ if(strcmp(gunid, "grendale",true) == 0){HouseInfo[house][hVec] = 466;} else if(strcmp(gunid, "elegant",true) == 0){HouseInfo[house][hVec] = 507;} else if(strcmp(gunid, "blistacompact",true) == 0){HouseInfo[house][hVec] = 496;} else if(strcmp(gunid, "sabre",true) == 0){HouseInfo[house][hVec] = 475;} else if(strcmp(gunid, "uranus",true) == 0){HouseInfo[house][hVec] = 558;} else if(strcmp(gunid, "huntley",true) == 0){HouseInfo[house][hVec] = 579;} else if(strcmp(gunid, "landstalker",true) == 0){HouseInfo[house][hVec] = 400;} else if(strcmp(gunid, "yosemite",true) == 0){HouseInfo[house][hVec] = 554;} else if(strcmp(gunid, "pcj600",true) == 0){HouseInfo[house][hVec] = 461;} else if(strcmp(gunid, "admiral",true) == 0){HouseInfo[house][hVec] = 445;} else if(strcmp(gunid, "blade",true) == 0){HouseInfo[house][hVec] = 536;} else if(strcmp(gunid, "remigton",true) == 0){HouseInfo[house][hVec] = 534;} else if(strcmp(gunid, "voodoo",true) == 0){HouseInfo[house][hVec] = 412;} else if(strcmp(gunid, "washing",true) == 0){HouseInfo[house][hVec] = 421;} else if(strcmp(gunid, "hustler",true) == 0){HouseInfo[house][hVec] = 545;} else if(strcmp(gunid, "rancher",true) == 0){HouseInfo[house][hVec] = 489;} else if(strcmp(gunid, "alpha",true) == 0){HouseInfo[house][hVec] = 602;} else if(strcmp(gunid, "bfinject",true) == 0){HouseInfo[house][hVec] = 424;} else if(strcmp(gunid, "elegy",true) == 0){HouseInfo[house][hVec] = 562;} else if(strcmp(gunid, "flash",true) == 0){HouseInfo[house][hVec] = 565;} else if(strcmp(gunid, "sentinel",true) == 0){HouseInfo[house][hVec] = 405;} else if(strcmp(gunid, "club",true) == 0){HouseInfo[house][hVec] = 589;} else if(strcmp(gunid, "windsor",true) == 0){HouseInfo[house][hVec] = 555;} else if(strcmp(gunid, "hotknife",true) == 0){HouseInfo[house][hVec] = 434;} else if(strcmp(gunid, "bandito",true) == 0){HouseInfo[house][hVec] = 568;} else if(strcmp(gunid, "hotring",true) == 0){HouseInfo[house][hVec] = 494;} }// vip 1 if(PlayerInfo[playerid][pDonateRank] >= 2){ if(strcmp(gunid, "savanna",true) == 0){HouseInfo[house][hVec] = 567;} else if(strcmp(gunid, "sultan",true) == 0){HouseInfo[house][hVec] = 560;} else if(strcmp(gunid, "banshee",true) == 0){HouseInfo[house][hVec] = 429;} else if(strcmp(gunid, "buffalo",true) == 0){HouseInfo[house][hVec] = 402;} else if(strcmp(gunid, "bullet",true) == 0){HouseInfo[house][hVec] = 541;} else if(strcmp(gunid, "cheetah",true) == 0){HouseInfo[house][hVec] = 415;} else if(strcmp(gunid, "euros",true) == 0){HouseInfo[house][hVec] = 587;} else if(strcmp(gunid, "infernus",true) == 0){HouseInfo[house][hVec] = 547;} else if(strcmp(gunid, "jester",true) == 0){HouseInfo[house][hVec] = 559;} else if(strcmp(gunid, "phoenix",true) == 0){HouseInfo[house][hVec] = 603;} else if(strcmp(gunid, "comet",true) == 0){HouseInfo[house][hVec] = 480;} else if(strcmp(gunid, "supergt",true) == 0){HouseInfo[house][hVec] = 506;} else if(strcmp(gunid, "turismo",true) == 0){HouseInfo[house][hVec] = 451;} else if(strcmp(gunid, "zr350",true) == 0){HouseInfo[house][hVec] = 477;} else if(strcmp(gunid, "fcr-900",true) == 0){HouseInfo[house][hVec] = 521;} else if(strcmp(gunid, "monsterb",true) == 0){HouseInfo[house][hVec] = 557;} else if(strcmp(gunid, "nrg-500",true) == 0){HouseInfo[house][hVec] = 522;} else if(strcmp(gunid, "quad",true) == 0){HouseInfo[house][hVec] = 471;} else if(strcmp(gunid, "sandking",true) == 0){HouseInfo[house][hVec] = 495;} }// vip 2 } } else { SendClientMessage(playerid, COLOR_GRAD2, " Carro invбlido."); return 1; } if(PlayerInfo[playerid][pDonateRank] == 1) { format(str, 256, "Nova atualizaзгo: 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. (R$-50000)"); OnPropUpdate(); GivePlayerGP(playerid,-50000); } if(PlayerInfo[playerid][pDonateRank] >= 2) { format(str, 256, "Nova atualizaзгo: 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."); OnPropUpdate(); } SBizzInfo[5][sbTill] += 3000; ExtortionSBiz(5, 3000); SBizzInfo[5][sbProducts]--; PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0); } else { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GRAD2, " Vocк nгo pode pagб-lo (R$100000)"); return 1; } format(str, 256, "Nova atualizaзгo: 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, (R$-100000)"); OnPropUpdate(); if(PlayerInfo[playerid][pDonateRank] < 1) { GivePlayerGP(playerid,-100000); } SBizzInfo[5][sbTill] += 3000; ExtortionSBiz(5, 3000); SBizzInfo[5][sbProducts]--; PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0); } } else { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GRAD2, " Vocк nгo tem uma casa."); return 1; } } } return 1; }