15.05.2012, 17:42
hi got some errors can any1 help?
C:\Users\iphone\Desktop\0.3e\filterscripts\interio r.pwn(254) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\iphone\Desktop\0.3e\filterscripts\interio r.pwn(254) : warning 215: expression has no effect
C:\Users\iphone\Desktop\0.3e\filterscripts\interio r.pwn(257) : error 030: compound statement not closed at the end of file (started at line 205)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
from line 254:
lol ill post the above code if it helps
C:\Users\iphone\Desktop\0.3e\filterscripts\interio r.pwn(254) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\iphone\Desktop\0.3e\filterscripts\interio r.pwn(254) : warning 215: expression has no effect
C:\Users\iphone\Desktop\0.3e\filterscripts\interio r.pwn(257) : error 030: compound statement not closed at the end of file (started at line 205)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
from line 254:
pawn Код:
return 1;
}
#endif
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_MAIN)
{
if(!response) return SendClientMessage(playerid, -1, "you have closed the dialog do /interiors to bring it up again");
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid, DIALOG_SHOP, DIALOG_STYLE_LIST, "{FF0000}Shops", "{00FF00}24/7 1\n{00FF00}24/7 2\n{00FF00}24/7 3\n{00FF00}24/7 4\n{00FF00}24/7 5\n{00FF00}24/7 6", "teleport", "cancel");
}
case 1:
{
ShowPlayerDialog(playerid, DIALOG_AMU, DIALOG_STYLE_LIST, "{FF0000}Amunations", "{00FF00}Amunation 1\n{00FF00}Amunation 2\n{00FF00}Amunation 3\n{00FF00}Amunation 4\n{00FF00}Amunation 5", "teleport", "cancel");
}
case 2:
{
ShowPlayerDialog(playerid, DIALOG_HOUSE, DIALOG_STYLE_LIST, "{FF0000}Houses", "{00FF00}House 1\n{00FF00}House 2\n{00FF00}House 3\n{00FF00}House 4\n{00FF00}House 5\n{00FF00}House 6\n{00FF00}House 7", "teleport", "cancel");
}
case 3:
{
ShowPlayerDialog(playerid, DIALOG_MISSIONS, DIALOG_STYLE_LIST, "{FF0000}Mission Interiors", "{00FF00}Atrium\n{00FF00}Big Smoke's Crack Palace\n{00FF00}Bloodbowl Stadium\n{00FF00}Burning Desire House{00FF00}Colonel Furhberger's\n{00FF00}Dillimore Gas Station\n{00FF00}Donut Shop\n{00FF00}Jefferson Motel\n{00FF00}Kickstart Stadium\n{00FF00}Liberty City\n{00FF00}Pleasures Dome/Jizzy's\n{00FF00}RC Battlefield\n{00FF00}Next", "Select", "cancel");
}
case 4:
{
ShowPlayerDialog(playerid, DIALOG_SAFE, DIALOG_STYLE_LIST, "{FF0000}Safe Houses", "{00FF00}Golden Bed Motel Room\n{00FF00}Hashbury House\n{00FF00}Johnsons House\n{00FF00}Madd Doggs Mansion\n{00FF00}Red Bed Motel Room\n{00FF00}Verdant Bluffs Safehouse\n{00FF00}Zeros RC Shop", "teleport", "cancel");
}
case 5:
{
ShowPlayerDialog(playerid, DIALOG_FOOD, DIALOG_STYLE_LIST, "{FF0000}Food Interiors", "{00FF00}Burger Shot\n{00FF00}Well Stacked Pizza\n{00FF00}Cluckin' Bell", "teleport", "cancel");
}
case 6:
{
ShowPlayerDialog(playerid, DIALOG_CASINO, DIALOG_STYLE_LIST, "{FF0000}Casino's", "{00FF00}4 Dragons Casino\n{00FF00}Caligulas Casino", "teleport", "cancel");
}
case 7:
{
ShowPlayerDialog(playerid, DIALOG_OTHER, DIALOG_STYLE_LIST, "{FF0000}Other", "{00FF00}Tattoos\n{00FF00}SF Police Department/n{00FF00}Unused Safe House", "teleport", "cancel");
}
}
if(dialogid == DIALOG_SHOP)
{
switch(listitem)
{
case 0:
{
SetPlayerPos(playerid, -25.884498,-185.868988,1003.546875);
SetPlayerInterior(playerid, 17);
}