06.12.2009, 17:43
I've searched, and asked my friends...i feel awkward asking like this
,but my code is messed and i cant figure it out...It's an easy error to fix...but...I can't figure it out with this code, I've done it a bunch of times
EDIT: Sorry bout messed subject..fixed...also included error
C:\Users\Owner\Desktop\samp03asvr_win32\ArmoryPick ups.pwn(82) : error 030: compound statement not closed at the end of file (started at line 66)

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if (pickupid == Sniper)
{
GivePlayerWeapon(playerid, 34, 150);
return 1;
}
else if (pickupid == M4)
{
GivePlayerWeapon(playerid, 32, 250);
{
if (pickupid == MP5)
{
GivePlayerWeapon(playerid, 28, 300);
{
if (pickupid == Para)
{
GivePlayerWeapon(playerid, 46, 1337);
{
if (pickupid == Deagle)
{
GivePlayerWeapon(playerid, 24, 125);
{
if (pickupid == ShotGun)
{
GivePlayerWeapon(playerid, 27, 500);// line 66
{
if (pickupid == Grenades)
{
GivePlayerWeapon(playerid, 16, 500);
{
if (pickupid == Melee)
{
GivePlayerWeapon(playerid, 3, 1337);
}
return 1;
}
}
return 0;
}
//line 81
EDIT: Sorry bout messed subject..fixed...also included error
C:\Users\Owner\Desktop\samp03asvr_win32\ArmoryPick ups.pwn(82) : error 030: compound statement not closed at the end of file (started at line 66)