Warning on script
#1

Need help this

(74060) : warning 217: loose indentation

Код:
if(dialogid == DIALOG_INTERIOR_MENU) {if(response) {
          new arrayid = listitem;
          SetPlayerPos(playerid, InteriorDialogData[arrayid][0], InteriorDialogData[arrayid][1], InteriorDialogData[arrayid][2]);
          SetPlayerInterior(playerid, InteriorDialogInteriors[arrayid][0]);
          SetPlayerFacingAngle(playerid, InteriorDialogData[arrayid][3]);
          format(string, sizeof(string), "[INTERIOR]: You teleported to interior ' %s '.", InteriorDialogNames[arrayid][0]);
          SendClientMessage(playerid, 0xADD8E6FF, string);
      	}
This line >>>      	else
        {
          //The player has pressed "Close".
          SendClientMessage(playerid, COLOR_RED, "You have closed the Interior Teleport Dialog.");
          return 1;
        }
	}
Reply
#2

Код:
if(dialogid == DIALOG_INTERIOR_MENU)
{
	if(response)
 	{
	new arrayid = listitem;
    SetPlayerPos(playerid, InteriorDialogData[arrayid][0], InteriorDialogData[arrayid][1], InteriorDialogData[arrayid][2]);
    SetPlayerInterior(playerid, InteriorDialogInteriors[arrayid][0]);
    SetPlayerFacingAngle(playerid, InteriorDialogData[arrayid][3]);
    format(string, sizeof(string), "[INTERIOR]: You teleported to interior ' %s '.", InteriorDialogNames[arrayid][0]);
    SendClientMessage(playerid, 0xADD8E6FF, string);
    }
    else
	{
    //The player has pressed "Close".
    SendClientMessage(playerid, COLOR_RED, "You have closed the Interior Teleport Dialog.");
    return 1;
    }
}
here ya go...
Reply
#3

thank you +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)