[AJUDA]Erro no /kitvip
#1

Dae pessoaaar!!

Entao meu sistema de /kitvip ta dando um erro, eu acrescentei algumas coisas nele e quando fui Compila deu aqueles 26 erros, como se faltasse alguma coisa.
Acontence que eu nao consigui ve o que ta faltando por isso se pudessem me ajuda fico grato...

Код:
    if(strcmp(cmd, "/kitvip", true) == 0)
	{
	    new location = PlayerInfo[playerid][pLocal];
	    if(location == 99 || location == 100 || location == 102)
		{
	        GetPlayerName(playerid, sendername, sizeof(sendername));
   			if(PlayerInfo[playerid][pVIP] > 2)
			{
      			new x_kitvip[256];
				x_kitvip = strtok(cmdtext, idx);
				if(!strlen(x_kitvip)) {
					SendClientMessage(playerid, COLOR_WHITE, "|__________________ KitVIP. __________________|");
					SendClientMessage(playerid, COLOR_WHITE, "|Use: /kitvip [Numero]");
					SendClientMessage(playerid, COLOR_GREY, "| 1 - Vip Bronze");
					SendClientMessage(playerid, COLOR_GREY, "| 2 - Vip Silver");
					SendClientMessage(playerid, COLOR_GREY, "| 3 - Vip Gold");
					SendClientMessage(playerid, COLOR_WHITE, "|____________________________________________|");
					return 1; }
                if(strcmp(x_kitvip,"1",true) == 0)
				{
			   	 	GivePlayerMoneyEx(playerid,-8000);
					format(string, sizeof(string), "* O VIP %s Pegou Seu KitVip Bronze.", sendername);
					ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					ResetPlayerWeapons(playerid);
					GivePlayerWeapon(playerid, 24, 100);
	    			GivePlayerWeapon(playerid, 30, 300);
		    		GivePlayerWeapon(playerid, 29, 300);
		    		GivePlayerWeapon(playerid, 25, 30);
		    		GivePlayerWeapon(playerid, 4, 1);
		    		GivePlayerWeapon(playerid, 34, 30);
					SetPlayerArmour(playerid, 70);
					SetPlayerHealth(playerid, 100);
					SendClientMessage(playerid,COLOR_GREEN,"Voce pegou o seu KitVip!");
			   	 	return 1;
				}
                if(strcmp(x_kitvip,"2",true) == 0)
				{
				    if(PlayerInfo[playerid][pVIP] > 3)
					{
						GivePlayerMoneyEx(playerid, -3000);
						format(string, sizeof(string), "* O VipPremium %s Pegou Seu KitVip Silver.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
     					ResetPlayerWeapons(playerid);
     					GivePlayerWeapon(playerid, 16, 10);
     					GivePlayerWeapon(playerid, 46, 1);
						GivePlayerWeapon(playerid, 24, 750);
	    				GivePlayerWeapon(playerid, 31, 1500);
		    			GivePlayerWeapon(playerid, 29, 1000);
		    			GivePlayerWeapon(playerid, 25, 250);
		    			GivePlayerWeapon(playerid, 4, 1);
		    			GivePlayerWeapon(playerid, 1, 1);
		    			GivePlayerWeapon(playerid, 34, 250);
						GivePlayerMoneyEx(playerid, -1000);
						SetPlayerArmour(playerid, 100);
						SetPlayerHealth(playerid, 100);
						SendClientMessage(playerid,COLOR_GREEN,"Voce pegou o seu KitVip!");
			   	 		return 1;
					}
					    if(strcmp(x_kitvip,"3",true) == 0)
						{
						if(PlayerInfo[playerid][pVIP] == 1)
					    {
					    format(string, sizeof(string), "* O VipGold %s Pegou seu KitVip Gold.", sendername);
					    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    					ResetPlayerWeapons(playerid);
     					GivePlayerWeapon(playerid, 16, 10);
     					GivePlayerWeapon(playerid, 46, 1);
						GivePlayerWeapon(playerid, 24, 750);
	    				GivePlayerWeapon(playerid, 31, 1500);
		    			GivePlayerWeapon(playerid, 29, 1000);
		    			GivePlayerWeapon(playerid, 25, 250);
		    			GivePlayerWeapon(playerid, 27, 100);
		    			GivePlayerWeapon(playerid, 4, 1);
		    			GivePlayerWeapon(playerid, 1, 1);
		    			GivePlayerWeapon(playerid, 34, 250);
						GivePlayerMoneyEx(playerid, -1000);
						SetPlayerArmour(playerid, 100);
						SetPlayerHealth(playerid, 100);
						SendClientMessage(playerid,COLOR_GREEN,"Voce pegou o seu KitVip!");
						return 1;
      					}
				}
			}
			else
			{
			    SendClientMessage(playerid, COLOR_LIGHTRED, "Este comando nгo existe.");
			}
		}
		else
		{
		    SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк nгo estб em uma loja de armas.");
		}
	}
Reply


Messages In This Thread
[AJUDA]Erro no /kitvip - by Gui_Cadence - 31.07.2010, 05:02
Re: [AJUDA]Erro no /kitvip - by keller012 - 31.07.2010, 05:06
Re: [AJUDA]Erro no /kitvip - by Gui_Cadence - 31.07.2010, 05:29
Re: [AJUDA]Erro no /kitvip - by Link_ - 31.07.2010, 22:36
Re: [AJUDA]Erro no /kitvip - by Gui_Cadence - 31.07.2010, 22:43
Re: [AJUDA]Erro no /kitvip - by Marco_Nutz - 01.08.2010, 00:54
Re: [AJUDA]Erro no /kitvip - by Gui_Cadence - 01.08.2010, 20:35
Re: [AJUDA]Erro no /kitvip - by Marco_Nutz - 01.08.2010, 20:41
Re: [AJUDA]Erro no /kitvip - by Gui_Cadence - 01.08.2010, 20:43
Re: [AJUDA]Erro no /kitvip - by Marco_Nutz - 01.08.2010, 20:47

Forum Jump:


Users browsing this thread: 5 Guest(s)