[HELP] Skin System!
#4

When i try that and this is the code (from line 54997 to line 55041):
Код:
//-------------------------[CLOTHES]-------------------------
	if(strcmp(cmd, "/clothes", true) == 0)
	{
		if(IsPlayerConnected(playerid))
		{
			if(IsAtClothShop(playerid))
			{
				tmp = strtok(cmdtext, idx);
				if(!strlen(tmp))
				{
					SendClientMessage(playerid, COLOR_WHITE,"USAGE: /clothes [Skin ID]");
					return 1;
				}
				new level = strval(tmp);
				if(PlayerInfo[playerid][pSex] == 1)
				{
					if(level >= 9 && level <= 13 || level == 31 || level >= 39 && level <= 41 || level >= 53 && level <= 56 || level >= 63 && level <= 65 || level == 69 || level >= 75 && level <= 77 || level == 85 || level >= 87 && level <= 93 || level >= 129 && level <= 131 || level >= 138 && level <= 141 || level == 145 || level == 148 || level >= 150 && level <= 152 || level == 157 || level == 169 || level == 172 || level == 178 || level >= 190 && level <= 199 || level == 201 || level == 205 || level == 207 || level == 211 || level >= 214 && level <= 216 || level >= 218 && level <= 219 || level >=224 && level <= 226 || level >= 231 && level <= 233 || level >= 237 && level <= 238 || level >= 243 && level <= 246 || level == 251 || level >= 256 && level <= 257 || level == 263 || level == 298)
					{
						SendClientMessage(COLOR_CREAM, "You are male, you can't buy female clothes!");
						return 1;
					}
				}
				else if(PlayerInfo[playerid][pSex] == 2)
				{
					if(level >= 14 && level <= 30 || level >= 32 && level <= 38 || level >= 42 && level <= 52 || level >= 57 && level <= 62 || level >= 66 && level <= 68 || level >= 72 && level <= 73 || level >= 78 && level <= 84 || level == 86 || level >= 94 && level <= 128 || level >= 132 && level <= 137 || level >= 142 && level <= 144 || level == 146 || level == 149 || level >= 153 && level <= 156 || level >= 158 && level <= 162 || level >= 165 && level <= 168 || level >= 170 && level <= 171 || level >= 173 && level <= 177 || level >= 179 && level <= 189 || level == 200 || level >= 202 && level <= 204 || level == 206 || level >= 208 && level <= 210 || level >= 212 && level <= 213 || level == 217 || level >= 220 && level <= 223 || level >= 227 && level <= 230 || level >= 234 && level <= 236 || level >= 239 && level <= 242 || level >= 247 && level <= 250 || level >= 253 && level <= 255 || level >= 258 && level <= 262 || level == 264 || level >= 268 && level <= 273 || level >= 289 && level <= 297 || level == 299)
					{
						SendClientMessage(COLOR_CREAM, "You are female, you can't buy male clothes!");
						return 1;
					}
				}
				else if(level == 0 || level == 70 || level == 71 || level == 74 || level == 147 || level == 163 || level == 164 || level == 165 || level == 211 || level == 252 || level == 265 || level == 266 || level == 267 || level >= 274 && level <= 288)
				{
					SendClientMessage(playerid , COLOR_GRAD2, "That clothes is not allowed !");
					return 1;
				}
				GivePlayerMoney(playerid,-150);
				SafeGivePlayerMoney(playerid, - 150);
				if(!IsValidSkin(level))
				return SendClientMessage(playerid, COLOR_GREY, "Wrong skin ID!");
				PlayerInfo[playerid][pModel] = level;
				SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
			}
		}
		return 1;
	}
I get 4 error and this is the error:
Quote:

D:\States Roleplay [2012]\gamemodes\STATES.pwn(55012) : error 075: input line too long (after substitutions)
D:\States Roleplay [2012]\gamemodes\STATES.pwn(55016) : error 035: argument type mismatch (argument 2)
D:\States Roleplay [2012]\gamemodes\STATES.pwn(55021) : error 075: input line too long (after substitutions)
D:\States Roleplay [2012]\gamemodes\STATES.pwn(55025) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Please somebody fix this problem, thank's...
Reply


Messages In This Thread
[HELP] Skin System! - by McCurdy - 18.07.2012, 13:13
Re: [HELP] Skin System! - by L.Hudson - 18.07.2012, 14:08
Re: [HELP] Skin System! - by McCurdy - 18.07.2012, 14:35
Re: [HELP] Skin System! - by McCurdy - 19.07.2012, 05:32
Re: [HELP] Skin System! - by Jstylezzz - 19.07.2012, 11:58
Re: [HELP] Skin System! - by McCurdy - 19.07.2012, 12:09
Re: [HELP] Skin System! - by McCurdy - 21.07.2012, 05:11
Re: [HELP] Skin System! - by Kindred - 21.07.2012, 05:50
Re: [HELP] Skin System! - by McCurdy - 21.07.2012, 05:52
Re: [HELP] Skin System! - by McCurdy - 21.07.2012, 13:56

Forum Jump:


Users browsing this thread: 1 Guest(s)