Warning on script - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Warning on script (
/showthread.php?tid=448851)
Warning on script -
Shazwan - 06.07.2013
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;
}
}
Re: Warning on script -
SwisherSweet - 06.07.2013
Код:
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...
Re: Warning on script -
Shazwan - 06.07.2013
thank you +rep