SA-MP Forums Archive
Quick help needed - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Quick help needed (/showthread.php?tid=82504)



Quick help needed - Joris - 18.06.2009

norx.pwn(4165) : warning 217: loose indentation
norx.pwn(4171) : warning 217: loose indentation

if(strcmp(cmdtext, "/island", true) == 0)
{
SetPlayerPos(playerid,1491.6279,6344.9331,1.5665);
return 1;
}

if(strcmp(cmdtext, "/airbattle", true) == 0)
{
OnlyPlayerTele(playerid, "AirBattle", 290.8786,1920.0966,17.6406, 270.0000, 0);
return 1;
}


What is wrong?


Re: Quick help needed - smokey104 - 19.06.2009

C:\Users\Joris\Desktop\GTA server\filterscripts\vactions.pwn(254) : warning 225: unreachable code
C:\Users\Joris\Desktop\GTA server\filterscripts\vactions.pwn(322) : error 029: invalid expression, assumed zero
C:\Users\Joris\Desktop\GTA server\filterscripts\vactions.pwn(322) : error 029: invalid expression, assumed zero
C:\Users\Joris\Desktop\GTA server\filterscripts\vactions.pwn(333) : error 030: compound statement not closed at the end of file (started at line 324)


Open the script again and post line 254 , 322, 333 in this topic? because people cant help you now


Re: Quick help needed - Joris - 28.06.2009

So good?


Re: Quick help needed - Joris - 29.06.2009

Help please?


Re: Quick help needed - refshal - 29.06.2009

pawn Код:
if(strcmp(cmdtext, "/island", true) == 0)
{
SetPlayerPos(playerid, 1491.6279, 6344.9331, 1.5665);
return 1;
}

if(strcmp(cmdtext, "/airbattle", true) == 0)
{
OnlyPlayerTele(playerid, "AirBattle", 290.8786, 1920.0966, 17.6406, 270.0000, 0);
return 1;
}
Copy and Paste that.


Re: Quick help needed - Joris - 29.06.2009

That not work. Isn't it the same what I post?


Re: Quick help needed - refshal - 29.06.2009

You have messed it up. I have just cleared it up for you.


Re: Quick help needed - shady91 - 29.06.2009

Quote:
Originally Posted by Joris
norx.pwn(4165) : warning 217: loose indentation
norx.pwn(4171) : warning 217: loose indentation

if(strcmp(cmdtext, "/island", true) == 0)
{
SetPlayerPos(playerid,1491.6279,6344.9331,1.5665);
return 1;
}

if(strcmp(cmdtext, "/airbattle", true) == 0)
{
OnlyPlayerTele(playerid, "AirBattle", 290.8786,1920.0966,17.6406, 270.0000, 0);
return 1;
}


What is wrong?
add

pawn Код:
#pragma tabsize 0

it will maek them not show up no more mate


Re: Quick help needed - Cezar - 29.06.2009

They should learn to indent rather than setting the tabsize to 0.

Anyway warning 217 ain't such a big deal. Means you got an ugly code :P


Re: Quick help needed - Joris - 29.06.2009

Quote:
Originally Posted by Shady91
Quote:
Originally Posted by Joris
norx.pwn(4165) : warning 217: loose indentation
norx.pwn(4171) : warning 217: loose indentation

if(strcmp(cmdtext, "/island", true) == 0)
{
SetPlayerPos(playerid,1491.6279,6344.9331,1.5665);
return 1;
}

if(strcmp(cmdtext, "/airbattle", true) == 0)
{
OnlyPlayerTele(playerid, "AirBattle", 290.8786,1920.0966,17.6406, 270.0000, 0);
return 1;
}


What is wrong?
add

pawn Код:
#pragma tabsize 0

it will maek them not show up no more mate
Where do I do that? :')

@Cezat, whut? 0.o