SA-MP Forums Archive
Warning 217 and Error 001 - 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 217 and Error 001 (/showthread.php?tid=354133)



Warning 217 and Error 001 - Frosty_LV - 25.06.2012

Hello! My beginner traveling in scripts continues, and this time I have problem:


warning 217: loose indentation
error 001: expected token: ";", but found "-identifier-"
warning 217: loose indentation
warning 217: loose indentation




Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/enter", cmdtext, true, 10) == 0)
	{
	if (IsPlayerInRangeOfPoint(playerid, 3.0, 1352.1962,-1756.9938,13.5078))
	    SetPlayerPos(playerid, -25.7000,-90.1999,1004.2999);
	   (IsPlayerInRangeOfPoint(playerid, 3.0, 1778.0828,-1664.6692,14.4355))
	    SetPlayerPos(playerid, 493.4503,-21.9830,1000.6797);
		// Do something here
Help me? :P


Re: Warning 217 and Error 001 - Kindred - 25.06.2012

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/enter", cmdtext, true, 10) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 3.0, 1352.1962,-1756.9938,13.5078))
        SetPlayerPos(playerid, -25.7000,-90.1999,1004.2999);
        if(IsPlayerInRangeOfPoint(playerid, 3.0, 1778.0828,-1664.6692,14.4355))
        SetPlayerPos(playerid, 493.4503,-21.9830,1000.6797);
        // Do something here
Very simple errors. The errors/warnings are self explanatory.


Re: Warning 217 and Error 001 - Frosty_LV - 25.06.2012

Quote:
Originally Posted by Kindred
Посмотреть сообщение
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/enter", cmdtext, true, 10) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 3.0, 1352.1962,-1756.9938,13.5078))
        SetPlayerPos(playerid, -25.7000,-90.1999,1004.2999);
        if(IsPlayerInRangeOfPoint(playerid, 3.0, 1778.0828,-1664.6692,14.4355))
        SetPlayerPos(playerid, 493.4503,-21.9830,1000.6797);
        // Do something here
Very simple errors. The errors/warnings are self explanatory.
Damn, how stupid I am +rep for you