Yet another - 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: Yet another (
/showthread.php?tid=234095)
Yet another -
iGetty - 03.03.2011
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;
}
Re: Yet another -
Stigg - 03.03.2011
You missed a closing brace '}'
Re: Yet another -
iGetty - 03.03.2011
Quote:
Originally Posted by Stigg
You missed a closing brace '}'
|
The thing is, I can't find where? :S
Re: Yet another -
YungGee - 03.03.2011
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
Re: Yet another -
admantis - 03.03.2011
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.
Re: Yet another -
(SF)Noobanatior - 03.03.2011
fix your indentation and it will be obvious
Re: Yet another -
iGetty - 03.03.2011
Well, i can't seem to find the error? :S
Re: Yet another -
YungGee - 03.03.2011
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;
}
Re: Yet another -
iGetty - 03.03.2011
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
Re: Yet another -
Tenshi - 03.03.2011
post the code thats above that ^