Posts: 48
Threads: 15
Joined: Jan 2013
Just wondering how I fix this error (1744
: error 030: compound statement not closed at the end of file (started at line 17402)
Код:
if(playertextid == gSelectionFurns[playerid][x]) {
HandlePlayerFurnitureSelection(playerid, x);
PlayerPlaySound(playerid, 1083, 0.0, 0.0, 0.0);
DestroyFurnitureSelectionMenu(playerid);
SetPVarInt(playerid, "furnc_active", 0);
EditObject(playerid, object[playerid]);
return 1;
}
x++;
}
return 0;
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
You're missing closed bracket(s). Start from the line 17402 and find its end so you can close it (it should be close to 17448) and fix your error.
Posts: 48
Threads: 15
Joined: Jan 2013
Could you fix the error for me?
Here are the lines from 17400 to 17446
Код:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
if(GetPVarInt(playerid, "furnc_active") == 0) return 0;
{
new curpage = GetPVarInt(playerid, "furnc_page");
// Handle: next button
if(playertextid == gNextButtonTextDrawId[playerid]) {
if(curpage < (GetNumberOfPages() - 1)) {
SetPVarInt(playerid, "furnc_page", curpage + 1);
ShowFurnModelPreviews(playerid);
UpdateFurnTextDraw(playerid);
PlayerPlaySound(playerid, 1083, 0.0, 0.0, 0.0);
} else {
PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
}
return 1;
}
// Handle: previous button
if(playertextid == gPrevButtonTextDrawId[playerid]) {
if(curpage > 0) {
SetPVarInt(playerid, "furnc_page", curpage - 1);
ShowFurnModelPreviews(playerid);
UpdateFurnTextDraw(playerid);
PlayerPlaySound(playerid, 1084, 0.0, 0.0, 0.0);
} else {
PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
}
return 1;
}
// Search in the array of textdraws used for the Furns
new x=0;
while(x != SELECTION_ITEMS) {
if(playertextid == gSelectionFurns[playerid][x]) {
HandlePlayerFurnitureSelection(playerid, x);
PlayerPlaySound(playerid, 1083, 0.0, 0.0, 0.0);
DestroyFurnitureSelectionMenu(playerid);
SetPVarInt(playerid, "furnc_active", 0);
EditObject(playerid, object[playerid]);
return 1;
}
x++;
}
return 0;
}
Thank you in advance.