invalid function or declaration and unmatched closing brace ("}") errors.Help:S
#1

Hey guys ive started to script a little but i got some erors
Код:
if (strcmp("/buy micro SMG", cmdtext, true, 10) == 0)
		SendClientMessage(playerid,0xAA3333AA,"You have bought a Micro SMG.You lost 4000$");//
		GivePlayerWeapon(playerid, 28,200);
		GivePlayerMoney(playerid,-4000);
		return 1;

	}
	
	if (strcmp("/buy AK47", cmdtext, true, 10) == 0)
		SendClientMessage(playerid,0xAA3333AA,"You have bought an AK47.You lost 5000$");//
		GivePlayerWeapon(playerid, 30,200);
		GivePlayerMoney(playerid,-5000);
		return 1;

	}
	
	if (strcmp("/buy sniper rifle", cmdtext, true, 10) == 0)
		SendClientMessage(playerid,0xAA3333AA,"You have bought a Sniper Rifle.You lost 7000$");//
		GivePlayerWeapon(playerid, 34,25);
		GivePlayerMoney(playerid,-7000);
		return 1;

	}
	
	if (strcmp("/buy satchel charge", cmdtext, true, 10) == 0)
		SendClientMessage(playerid,0xAA3333AA,"You have bought a Sactchel Charge&Detonator.You lost 15000$");//
		GivePlayerWeapon(playerid, 39,5);
		GivePlayerMoney(playerid,-15000);
		return 1;

	}
	
	if (srcmp("/buy large white vibrator", cmdtext, true, 10) == 0)
		SendClientMessage(playerid,0xAA3333AA,"You have bought an Large White Vibrator.You lost 500$");//
		GivePlayerWeapon(playerid, 12,1);
		GivePlayerMoney(playerid,-500);
		return 0;

	return 1;
}
And the erors are:C:\Documents and Settings\Root\Desktop\seex.pwn(163) : error 010: invalid function or declaration
C:\Documents and Settings\Root\Desktop\seex.pwn(167) : error 010: invalid function or declaration
C:\Documents and Settings\Root\Desktop\seex.pwn(169) : error 054: unmatched closing brace ("}")
C:\Documents and Settings\Root\Desktop\seex.pwn(171) : error 010: invalid function or declaration
C:\Documents and Settings\Root\Desktop\seex.pwn(175) : error 010: invalid function or declaration
C:\Documents and Settings\Root\Desktop\seex.pwn(177) : error 054: unmatched closing brace ("}")
C:\Documents and Settings\Root\Desktop\seex.pwn(179) : error 010: invalid function or declaration
C:\Documents and Settings\Root\Desktop\seex.pwn(183) : error 010: invalid function or declaration
C:\Documents and Settings\Root\Desktop\seex.pwn(185) : error 054: unmatched closing brace ("}")
C:\Documents and Settings\Root\Desktop\seex.pwn(187) : error 010: invalid function or declaration
C:\Documents and Settings\Root\Desktop\seex.pwn(191) : error 010: invalid function or declaration
C:\Documents and Settings\Root\Desktop\seex.pwn(193) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


12 Errors.
Can you tell me please whats the problem?:S.Thank you for support
PS:im a noob
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)