pawno can't compile because this code.
#1

same with title , pawno can't compile it suddently closed when compiling progress.
after i delete that code , it can compiled

here the code
Код:
	if(dialogid == VIPWEPSMENU)
	{
		if(!response) return 1;
		if(PlayerInfo[playerid][pDonateRank] < 3 && PlayerInfo[playerid][pTokens] == 0)
		{
			SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You do not have any tokens! You get tokens every paycheck.");
			return 1;
		}
		if(PlayerInfo[playerid][pConnectTime] < 2 || PlayerInfo[playerid][pWRestricted] > 0) return SendClientMessageEx(playerid, COLOR_GRAD2, "You cannot use this as you are currently restricted from possessing weapons!");
		switch( listitem )
		{
			case 0:
			{

				if(PlayerInfo[playerid][pDonateRank] < 2)
				{
					if(PlayerInfo[playerid][pTokens] < 5)
					{
						SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You do not have enough tokens for this.");
						return 1;
					}
					PlayerInfo[playerid][pTokens] -= 5;
					format(string, sizeof(string), "VIP: You have traded 5 tokens for a Desert Eagle, you now have %d token(s).", PlayerInfo[playerid][pTokens]);
					SendClientMessageEx(playerid, COLOR_YELLOW, string);
					GivePlayerValidWeapon(playerid, 24, 60000);
				}
				else
				{
					SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You are not Silver VIP+.");
					return 1;
				}
			}
			case 1:
			{

				if(PlayerInfo[playerid][pDonateRank] < 2)
				{
					if(PlayerInfo[playerid][pTokens] < 20)
					{
						SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You do not have enough tokens for this.");
						return 1;
					}
					PlayerInfo[playerid][pTokens] -= 20;
					format(string, sizeof(string), "VIP: You have traded 20 tokens for a SPAS12, you now have %d token(s).", PlayerInfo[playerid][pTokens]);
					SendClientMessageEx(playerid, COLOR_YELLOW, string);
					GivePlayerValidWeapon(playerid, 27, 60000);
				}
				else
				{
					SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You are not Silver VIP+.");
					return 1;
				}
			}
			case 2:
			{

				if(PlayerInfo[playerid][pDonateRank] < 2)
				{
					if(PlayerInfo[playerid][pTokens] < 25)
					{
						SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You do not have enough tokens for this.");
						return 1;
					}
					PlayerInfo[playerid][pTokens] -= 25;
					format(string, sizeof(string), "VIP: You have traded 25 tokens for a M4, you now have %d token(s).", PlayerInfo[playerid][pTokens]);
					SendClientMessageEx(playerid, COLOR_YELLOW, string);
					GivePlayerValidWeapon(playerid, 31, 60000);
				}
				else
				{
					SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You are not Silver VIP+.");
					return 1;
				}
			}
			case 3:
			{
				if(PlayerInfo[playerid][pDonateRank] < 2)
				{
					if(PlayerInfo[playerid][pTokens] < 25)
					{
						SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You do not have enough tokens for this.");
						return 1;
					}
					PlayerInfo[playerid][pTokens] -= 25;
					format(string, sizeof(string), "VIP: You have traded 25 tokens for a AK47, you now have %d token(s).", PlayerInfo[playerid][pTokens]);
					SendClientMessageEx(playerid, COLOR_YELLOW, string);
					GivePlayerValidWeapon(playerid, 30, 60000);
				}
				else
				{
					SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You are not Silver VIP+.");
					return 1;
				}
			}
			case 4:
			{
				if(PlayerInfo[playerid][pDonateRank] < 2)
				{
					if(PlayerInfo[playerid][pTokens] < 10)
					{
						SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You do not have enough tokens for this.");
						return 1;
					}
					PlayerInfo[playerid][pTokens] -= 10;
					format(string, sizeof(string), "VIP: You have traded 10 tokens for a shotgun, you now have %d token(s).", PlayerInfo[playerid][pTokens]);
					SendClientMessageEx(playerid, COLOR_YELLOW, string);
					GivePlayerValidWeapon(playerid, 25, 60000);
				}
				else
				{
					SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You are not Silver VIP+.");
					return 1;
				}
			}
			case 5:
			{
				if(PlayerInfo[playerid][pDonateRank] < 2)
				{
					if(PlayerInfo[playerid][pTokens] < 15)
					{
						SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You do not have enough tokens for this.");
						return 1;
					}
					PlayerInfo[playerid][pTokens] -= 15;
					format(string, sizeof(string), "VIP: You have traded 15 tokens for a mp5, you now have %d token(s).", PlayerInfo[playerid][pTokens]);
					SendClientMessageEx(playerid, COLOR_YELLOW, string);
					GivePlayerValidWeapon(playerid, 29, 60000);
				}
				else
				{
					SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You are not Silver VIP+.");
					return 1;
				}
			}
			case 6:
			{
				if(PlayerInfo[playerid][pDonateRank] < 2)
				{
					if(PlayerInfo[playerid][pTokens] < 20)
					{
						SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You do not have enough tokens for this.");
						return 1;
					}
					PlayerInfo[playerid][pTokens] -= 10;
					format(string, sizeof(string), "VIP: You have traded 20 tokens for a sniper, you now have %d token(s).", PlayerInfo[playerid][pTokens]);
					SendClientMessageEx(playerid, COLOR_YELLOW, string);
					GivePlayerValidWeapon(playerid, 34, 60000);
				}
				else
				{
					SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You are not Silver VIP+.");
					return 1;
				}
			}
			case 7:
			{
				if(PlayerInfo[playerid][pDonateRank] < 2)
				{
					if(PlayerInfo[playerid][pTokens] < 3)
					{
						SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You do not have enough tokens for this.");
						return 1;
					}
					PlayerInfo[playerid][pTokens] -= 3;
					format(string, sizeof(string), "VIP: You have traded 3 tokens for a sdpistol, you now have %d token(s).", PlayerInfo[playerid][pTokens]);
					SendClientMessageEx(playerid, COLOR_YELLOW, string);
					GivePlayerValidWeapon(playerid, 23, 60000);
				}
				else
				{
					SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You are not Silver VIP+.");
					return 1;
				}
			}
				GivePlayerValidWeapon(playerid, 23, 60000);
			}
			case 8:
			{
				if(PlayerInfo[playerid][pDonateRank] < 2)
				{
					if(PlayerInfo[playerid][pTokens] < 1)
					{
						SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You do not have enough tokens for this.");
						return 1;
					}
					PlayerInfo[playerid][pTokens] -= 1;
					format(string, sizeof(string), "VIP: You have traded 1 tokens for a golf club, you now have %d token(s).", PlayerInfo[playerid][pTokens]);
					SendClientMessageEx(playerid, COLOR_YELLOW, string);
					GivePlayerValidWeapon(playerid, 2, 60000);
				}
				else
				{
					SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You are not Silver VIP+.");
					return 1;
				}
			}
			case 9:
			{
				if(PlayerInfo[playerid][pDonateRank] < 2)
				{
					if(PlayerInfo[playerid][pTokens] < 3)
					{
						SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You do not have enough tokens for this.");
						return 1;
					}
					PlayerInfo[playerid][pTokens] -= 10;
					format(string, sizeof(string), "VIP: You have traded 3 tokens for a baseball bat, you now have %d token(s).", PlayerInfo[playerid][pTokens]);
					SendClientMessageEx(playerid, COLOR_YELLOW, string);
					GivePlayerValidWeapon(playerid, 5, 60000);
				}
				else
				{
					SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You are not Silver VIP+.");
					return 1;
				}
			}
			case 10:
			{
				if(PlayerInfo[playerid][pDonateRank] < 2)
				{
					if(PlayerInfo[playerid][pTokens] < 1)
					{
						SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You do not have enough tokens for this.");
						return 1;
					}
					PlayerInfo[playerid][pTokens] -= 1;
					format(string, sizeof(string), "VIP: You have traded 1 tokens for a dildo, you now have %d token(s).", PlayerInfo[playerid][pTokens]);
					SendClientMessageEx(playerid, COLOR_YELLOW, string);
					GivePlayerValidWeapon(playerid, 10, 60000);
				}
				else
				{
					SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You are not Silver VIP+.");
					return 1;
				}
			}
			case 11:
			{
				if(PlayerInfo[playerid][pDonateRank] < 2)
				{
					if(PlayerInfo[playerid][pTokens] < 5)
					{
						SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You do not have enough tokens for this.");
						return 1;
					}
					PlayerInfo[playerid][pTokens] -= 5;
					format(string, sizeof(string), "VIP: You have traded 5 tokens for a sword, you now have %d token(s).", PlayerInfo[playerid][pTokens]);
					SendClientMessageEx(playerid, COLOR_YELLOW, string);
					GivePlayerValidWeapon(playerid, 8, 60000);
				}
				else
				{
					SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You are not Silver VIP+.");
					return 1;
				}
			}
		}
	}
what should i put into that script ?
sorry bad english
Reply


Messages In This Thread
pawno can't compile because this code. - by Ivander - 26.09.2013, 15:29
Re: pawno can't compile because this code. - by alinategh - 26.09.2013, 15:34
Re: pawno can't compile because this code. - by Ivander - 26.09.2013, 15:42
Re: pawno can't compile because this code. - by CesarLT - 26.09.2013, 15:44
Re: pawno can't compile because this code. - by Ivander - 26.09.2013, 15:48
Re: pawno can't compile because this code. - by Ivander - 26.09.2013, 15:52
Re: pawno can't compile because this code. - by Blast3r - 26.09.2013, 17:22
Re: pawno can't compile because this code. - by Konstantinos - 26.09.2013, 19:04

Forum Jump:


Users browsing this thread: 1 Guest(s)