08.12.2013, 06:16
So I Am Learning to Script And I Have Made a Car Dialog And a Weapon Dialog. I Made The Weapon Dialog In a Filterscript to see if it worked. And It Did But The Car Dialog Didnt In The GM. So I Added The Weapon Dialog into The GM And Sorted The Indention Problems. And Now I Have Tried Everything To Solve This.
This Is The Error
Line 68
Please Help
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new Float:x, Float:y, Float:z;
if(dialogid==0 && response==1)
{
switch(listitem)
{
case 0:
{
GetPlayerPos(playerid,x,y,z);
CreateVehicle(541,x+3.0,y,z+0.0,0,1,1,800);
}
case 1:
{
GetPlayerPos(playerid,x,y,z);
CreateVehicle(411,x+3.0,y,z+0.0,0,1,1,800);
}
case 2:
{
GetPlayerPos(playerid,x,y,z);
CreateVehicle(562,x+3.0,y,z+0.0,0,1,1,800);
}
case 3:
{
GetPlayerPos(playerid,x,y,z);
CreateVehicle(415,x+3.0,y,z+0.0,0,1,1,800);
}
case 4:
{
GetPlayerPos(playerid,x,y,z);
CreateVehicle(402,x+3.0,y,z+0.0,0,1,1,800);
}
case 5:
{
GetPlayerPos(playerid,x,y,z);
CreateVehicle(596,x+3.0,y,z+0.0,0,1,1,800);
}
case 6:
{
GetPlayerPos(playerid,x,y,z);
CreateVehicle(597,x+3.0,y,z+0.0,0,1,1,800);
}
case 7:
{
GetPlayerPos(playerid,x,y,z);
CreateVehicle(598,x+3.0,y,z+0.0,0,1,1,800);
}
case 8:
{
GetPlayerPos(playerid,x,y,z);
CreateVehicle(599,x+3.0,y,z+0.0,0,1,1,800);
}
case 9:
{
GetPlayerPos(playerid,x,y,z);
CreateVehicle(487,x+3.0,y,z+0.0,0,1,1,800);
}
case 10:
{
GetPlayerPos(playerid,x,y,z);
CreateVehicle(425,x+3.0,y,z+0.0,0,1,1,800);
}
case 11:
{
GetPlayerPos(playerid,x,y,z);
CreateVehicle(468,x+3.0,y,z+0.0,0,1,1,800);
}
}
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Weapons", "1.M4A1\n2.MINIGUN\n3.RPG\n4.DEAGLE", "Get Weapon", "Close");
{
}
if(dialogid==1)
{
switch(listitem)
{
case 0:
{
GetPlayerPos(playerid,x,y,z);
GivePlayerWeapon(playerid, 31, 9999);
}
case 1:
{
GetPlayerPos(playerid,x,y,z);
GivePlayerWeapon(playerid, 38, 9999);
}
case 2:
{
GetPlayerPos(playerid,x,y,z);
GivePlayerWeapon(playerid, 35, 9999);
}
case 3:
{
GetPlayerPos(playerid,x,y,z);
GivePlayerWeapon(playerid, 24, 9999);
return 1;
}
}
}
}
Код:
compound statement not closed at the end of file (started at line 68)
Код:
new Float:x, Float:y, Float:z;


: warning 217: loose indentation