Command Text Warning - 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: Command Text Warning (
/showthread.php?tid=543897)
Command Text Warning -
Dezzzy - 29.10.2014
Код HTML:
if(strcmp(cmd, "/openbomj", true) == 0)
{
if(PlayerInfo[playerid][pLeader] == 25 || PlayerInfo[playerid][pMember] == 25)
{
if(PlayerToPoint(18, playerid,1162.5000000,-1637.7000000,14.7000000))
MoveObject(Bomji, 1162.5000000,-1637.7000000,14.7000000,0.0000000,0.0000000,0.0000000);
SetTimer("BomjiCloseLS", 6000, 0); // таймер (7 сек)
}
return true;
}
Error
Код HTML:
C:\Users\Gigi\Desktop\Samp Server Fuliox RP Amx\1413562663_fuliox-rp\Fuliox-Rp\gamemodes\Fuliox-Rp.pwn(52126) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
52126 Line IS >>>
Idk what is wrong
Re: Command Text Warning -
Anzipane - 29.10.2014
Your code is not indented, that's the problem.
Learn more about code indentation here:
Wikipedia
pawn Код:
if(strcmp(cmd, "/openbomj", true) == 0)
{
if(PlayerInfo[playerid][pLeader] == 25 || PlayerInfo[playerid][pMember] == 25)
{
if(PlayerToPoint(18, playerid,1162.5000000,-1637.7000000,14.7000000))
MoveObject(Bomji, 1162.5000000,-1637.7000000,14.7000000,0.0000000,0.0000000,0.0000000);
SetTimer("BomjiCloseLS", 6000, 0); // таймер (7 сек)
}
return true;
}
Re: Command Text Warning -
Dezzzy - 29.10.2014
Resolved Thanks#
but it dont move