Yet another
#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


Messages In This Thread
Yet another - by iGetty - 03.03.2011, 02:59
Re: Yet another - by Stigg - 03.03.2011, 03:07
Re: Yet another - by iGetty - 03.03.2011, 03:10
Re: Yet another - by YungGee - 03.03.2011, 03:14
Re: Yet another - by admantis - 03.03.2011, 03:14
Re: Yet another - by (SF)Noobanatior - 03.03.2011, 03:14
Re: Yet another - by iGetty - 03.03.2011, 03:22
Re: Yet another - by YungGee - 03.03.2011, 03:29
Re: Yet another - by iGetty - 03.03.2011, 03:32
Re: Yet another - by Tenshi - 03.03.2011, 03:47

Forum Jump:


Users browsing this thread: 1 Guest(s)