Need help get one error
#1

Hey i cant find the error hope you can?

The error:
PHP код:
C:\Users\Game\Desktop\east side beach\filterscripts\LSPDlocker.pwn(150) : error 030compound statement not closed at the end of file (started at line 91)
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
1 Error

And the code:
PHP код:
#include <a_samp>
#include <zcmd>
CMD:lspdlocker(playeridparams[])
{
if(
GetPlayerSkin(playerid) != 280 && GetPlayerSkin(playerid) != 281 && GetPlayerSkin(playerid) != 282 && GetPlayerSkin(playerid) != 283 && GetPlayerSkin(playerid) != 284 && GetPlayerSkin(playerid) != 285) return SendClientMessage(playerid,0xAA3333AA"You are not a official LSPD member");
if(
IsPlayerInRangeOfPoint(playerid4.0254.0871,73.6980,1003.6406))
ShowPlayerDialog(playerid,1212,DIALOG_STYLE_LIST,"LSPD LOCKER","Weapons\nSkins\nArmour/Pills""OK","CANCEL");
return 
1;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
if(
dialogid == 1212)
{
if(
response)
{
switch(
listitem)
{
case 
0:ShowPlayerDialog(playerid,1213,DIALOG_STYLE_LIST,"LSPD LOCKER-Weapons","Silenced 9mm\nDesert Eagle\nShotgun\nCombat Shotgun\nMicro SMG\nMP5\nTec-9\nM4A1\nAK-47\nSniper Rifle""OK","CANCEL");
case 
1:ShowPlayerDialog(playerid,1214,DIALOG_STYLE_LIST,"LSPD LOCKER-Skins","Police Officer Los Santos\nPolice Officer San Fierro\nPolice Officer Las Venturas\nSheriff Countryside\nPolice Bike Officer San Andreas\nS.W.A.T Special Forces San Andreas""OK","CANCEL");
case 
2:ShowPlayerDialog(playerid,1215,DIALOG_STYLE_LIST,"LSPD LOCKER-Armour/Pills","Armor\nPills""OK","CANCEL");
}
}
}
if(
dialogid == 1213)
{
if(
response)
{
switch(
listitem)
{
case 
0:
{
GivePlayerWeapon(playerid22500);
GameTextForPlayer(playerid"9mm"30001);
}
case 
1:
{
GivePlayerWeapon(playerid24500);
GameTextForPlayer(playerid"Desert Eagle"30001);
}
case 
2:
{
GivePlayerWeapon(playerid25500);
GameTextForPlayer(playerid"Shotgun"30001);
}
case 
3:
{
GivePlayerWeapon(playerid27500);
GameTextForPlayer(playerid"Combat Shotgun"30001);
}
case 
4:
{
GivePlayerWeapon(playerid28500);
GameTextForPlayer(playerid"Micro SMG/Uzi"30001);
}
case 
5:
{
GivePlayerWeapon(playerid29500);
GameTextForPlayer(playerid"MP5"30001);
}
case 
6:
{
GivePlayerWeapon(playerid32500);
GameTextForPlayer(playerid"Tec-9"30001);
}
case 
7:
{
GivePlayerWeapon(playerid31500);
GameTextForPlayer(playerid"M4"30001);
}
case 
8:
{
GivePlayerWeapon(playerid30500);
GameTextForPlayer(playerid"AK-47"30001);
}
case 
9:
{
GivePlayerWeapon(playerid34500);
GameTextForPlayer(playerid"Sniper Rifle"30001);
}
}
return 
1;
}
if(
dialogid == 1214)
{
if(
response)
{
switch(
listitem)
{
case 
0:
{
SetPlayerSkin(playerid280);
GameTextForPlayer(playerid"Police Officer Los Santos"30001);
}
case 
1:
{
SetPlayerSkin(playerid281);
GameTextForPlayer(playerid"Police Officer San Fierro"30001);
}
case 
2:
{
SetPlayerSkin(playerid262);
GameTextForPlayer(playerid"Police Officer Las Venturas"30001);
}
case 
3:
{
SetPlayerSkin(playerid263);
GameTextForPlayer(playerid"Sheriff Countryside"30001);
}
case 
4:
{
SetPlayerSkin(playerid263);
GameTextForPlayer(playerid"Police Bike Officer San Andreas"30001);
}
case 
5:
{
SetPlayerSkin(playerid263);
GameTextForPlayer(playerid"S.W.A.T Special Forces San Andreas"30001);
}
}
return 
1;
}
if(
dialogid == 1215)
{
if(
response)
{
switch(
listitem)
{
case 
0:
{
SetPlayerArmour(playerid100.0);
GameTextForPlayer(playerid"Armor"30001);
}
case 
1:
{
SetPlayerHealth(playerid100);
GameTextForPlayer(playerid"Pills"30001);
}
}
}
return 
1;

Reply
#2

missing } somewhere
Reply
#3

If you started to indent your code, you'd be able to tell where it is and would probably not have this issue in the first place.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)