Yet another
#1

Yet another error:

Код:
C:\Documents and Settings\Callum\Desktop\bank.pwn(105) : warning 217: loose indentation
C:\Documents and Settings\Callum\Desktop\bank.pwn(113) : warning 217: loose indentation
C:\Documents and Settings\Callum\Desktop\bank.pwn(115) : error 030: compound statement not closed at the end of file (started at line 106)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Lines 105 - end:

Код:
{
	if(!strcmp("/goout",cmdtext))
 	{
  		if(IsPlayerInRangeOfPoint(playerid, 3.0, 1415.951171,-988.971191,1639.980224))
     	{
      		SetPlayerPos(playerid, 1415.951171,-988.971191,1639.980224);
         	SetPlayerInterior(playerid, 0);
  		}
   	return 1;
 	}
Reply
#2

You missed a closing brace '}'
Reply
#3

Quote:
Originally Posted by Stigg
Посмотреть сообщение
You missed a closing brace '}'
The thing is, I can't find where? :S
Reply
#4

Count you spaces in 4 like this...

pawn Код:
if(!strcmp("/goout",cmdtext))
{
    if(IsPlayerInRangeOfPoint(playerid, 3.0, 1415.951171,-988.971191,1639.980224))
    {
         SetPlayerPos(playerid, 1415.951171,-988.971191,1639.980224);
         SetPlayerInterior(playerid, 0);
    }
    return 1;
}
remember { means open } means close each { needs a following }

EDIT: as you can see my spaces are 4 and when it reaches out with more count u step with 4 spaces looks cleaner and is a clean indentation
Reply
#5

It says it starts at 106, so start browsing from 106 for a missing bracket. Keep your eyes open as they can be very squaky.
Reply
#6

fix your indentation and it will be obvious
Reply
#7

Well, i can't seem to find the error? :S
Reply
#8

Quote:
Originally Posted by YungGee
Посмотреть сообщение
Count you spaces in 4 like this...

pawn Код:
if(!strcmp("/goout",cmdtext))
{
    if(IsPlayerInRangeOfPoint(playerid, 3.0, 1415.951171,-988.971191,1639.980224))
    {
         SetPlayerPos(playerid, 1415.951171,-988.971191,1639.980224);
         SetPlayerInterior(playerid, 0);
    }
    return 1;
}
remember { means open } means close each { needs a following }

EDIT: as you can see my spaces are 4 and when it reaches out with more count u step with 4 spaces looks cleaner and is a clean indentation
Due theres the fixed code there

u had a unused brace

pawn Код:
//{ <-----------
if(!strcmp("/goout",cmdtext))
{
    if(IsPlayerInRangeOfPoint(playerid, 3.0, 1415.951171,-988.971191,1639.980224))
    {
         SetPlayerPos(playerid, 1415.951171,-988.971191,1639.980224);
         SetPlayerInterior(playerid, 0);
    }
    return 1;
}
Reply
#9

Quote:
Originally Posted by YungGee
Посмотреть сообщение
Due theres the fixed code there

u had a unused brace

pawn Код:
//{ <-----------
if(!strcmp("/goout",cmdtext))
{
    if(IsPlayerInRangeOfPoint(playerid, 3.0, 1415.951171,-988.971191,1639.980224))
    {
         SetPlayerPos(playerid, 1415.951171,-988.971191,1639.980224);
         SetPlayerInterior(playerid, 0);
    }
    return 1;
}
Код:
C:\Documents and Settings\Callum\Desktop\bank.pwn(105) : error 010: invalid function or declaration
C:\Documents and Settings\Callum\Desktop\bank.pwn(107) : error 010: invalid function or declaration
C:\Documents and Settings\Callum\Desktop\bank.pwn(112) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
now i get this? :S
Reply
#10

post the code thats above that ^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)