warning 217: loose indentation [ HELP PLEASE ]
#1

Helo0 samp user's how r u ?...i have an problem that i have
pawn Код:
new Text:Capstext;
new Text:Wtext;
new Text:cartext;
new Text:tcartext;
new Text:fliptext;
new Text:sptext;
new Text:jumptext;
new Text:vtext;
and i use it for textdarw but i got following errors
Код:
../ServerStocks/Functions.pwn(1873) : warning 217: loose indentation
../ServerStocks/Functions.pwn(1882) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
Can some one please help me ? I whould realy appriciated !

full CODe
pawn Код:
new Text:Capstext;
new Text:Wtext;
new Text:cartext;
new Text:tcartext;
new Text:fliptext;
new Text:sptext;
new Text:jumptext;
new Text:vtext;

    Wtext = TextDrawCreate(478.000000, 312.000000, "/teles= Teleports");
    TextDrawBackgroundColor(Wtext, 255);
    TextDrawFont(Wtext, 3);
    TextDrawLetterSize(Wtext, 0.509998, 1.700000);
    TextDrawColor(Wtext, 16711935);
    TextDrawSetOutline(Wtext, 0);
    TextDrawSetProportional(Wtext, 1);
    TextDrawSetShadow(Wtext, 1);

    cartext = TextDrawCreate(484.000000, 296.000000, "/car= Quick Car");
    TextDrawBackgroundColor(cartext, 255);
    TextDrawFont(cartext, 3);
    TextDrawLetterSize(cartext, 0.500000, 1.700000);
    TextDrawColor(cartext, 65535);
    TextDrawSetOutline(cartext, 0);
    TextDrawSetProportional(cartext, 1);
    TextDrawSetShadow(cartext, 1);

    tcartext = TextDrawCreate(449.000000, 282.000000, "/credits= server reator");
    TextDrawBackgroundColor(tcartext, 255);
    TextDrawFont(tcartext, 3);
    TextDrawLetterSize(tcartext, 0.500000, 1.600000);
    TextDrawColor(tcartext, -16776961);
    TextDrawSetOutline(tcartext, 0);
    TextDrawSetProportional(tcartext, 1);
    TextDrawSetShadow(tcartext, 1);

    fliptext = TextDrawCreate(479.000000, 267.000000, "type /flip to flip");
    TextDrawBackgroundColor(fliptext, 255);
    TextDrawFont(fliptext, 3);
    TextDrawLetterSize(fliptext, 0.500000, 1.700000);
    TextDrawColor(fliptext, -65281);
    TextDrawSetOutline(fliptext, 0);
    TextDrawSetProportional(fliptext, 1);
    TextDrawSetShadow(fliptext, 1);

    Capstext = TextDrawCreate(450.000000, 252.000000, "/commands = for commands");
    TextDrawBackgroundColor(Capstext, 255);
    TextDrawFont(Capstext, 3);
    TextDrawLetterSize(Capstext, 0.500000, 1.700000);
    TextDrawColor(Capstext, 16711935);
    TextDrawSetOutline(Capstext, 0);
    TextDrawSetProportional(Capstext, 1);
    TextDrawSetShadow(Capstext, 1);

    sptext = TextDrawCreate(482.000000, 238.000000, "LMB= SpeedBoost");
    TextDrawBackgroundColor(sptext, 255);
    TextDrawFont(sptext, 3);
    TextDrawLetterSize(sptext, 0.500000, 1.700000);
    TextDrawColor(sptext, 65535);
    TextDrawSetOutline(sptext, 0);
    TextDrawSetProportional(sptext, 1);
    TextDrawSetShadow(sptext, 1);

    jumptext = TextDrawCreate(446.000000, 223.000000, "+ or 2= Jump Vehicle");
    TextDrawBackgroundColor(jumptext, 255);
    TextDrawFont(jumptext, 3);
    TextDrawLetterSize(jumptext, 0.500000, 1.800000);
    TextDrawColor(jumptext, -16776961);
    TextDrawSetOutline(jumptext, 0);
    TextDrawSetProportional(jumptext, 1);
    TextDrawSetShadow(jumptext, 1);

    vtext = TextDrawCreate(482.000000, 208.000000, "/v= Vehicle Menu");
    TextDrawBackgroundColor(vtext, 255);
    TextDrawFont(vtext, 3);
    TextDrawLetterSize(vtext, 0.500000, 1.800000);
    TextDrawColor(vtext, 16711935);
    TextDrawSetOutline(vtext, 0);
    TextDrawSetProportional(vtext, 1);
    TextDrawSetShadow(vtext, 1);

    return 1;

}
Reply
#2

They are only Warnings they dont give you eny errors
Reply
#3

Quote:
Originally Posted by James Coral
Посмотреть сообщение
They are only Warnings they dont give you eny errors
But i cant compile my game mode and i cant use that textdraw !!!! what to do ?
Reply
#4

Please place an arrow on the lines.

It means ur tabbing isnt right
Reply
#5

Quote:
Originally Posted by milanosie
Посмотреть сообщение
Please place an arrow on the lines.

It means ur tabbing isnt right
you mean like

pawn Код:
new <Wtext>
?
Reply
#6

No, see, this is an example of bad indention:

pawn Код:
enum pInfo
{
pPass,
pCash,
pAdmin,
pKills,
pDeaths,
}
new PlayerInfo[MAX_PLAYERS][pInfo];
This is an example of good indention:

pawn Код:
enum pInfo
{
    pPass,
    pCash,
    pAdmin,
    pKills,
    pDeaths,
}
new PlayerInfo[MAX_PLAYERS][pInfo];
Simply use tab to indent your code after one of { <-- those, and lower the indention one after one of } <--- these.

Hope I helped.
Reply
#7

Add this at the very top of your script, under the includes:
pawn Код:
#pragma tabsize 0
Reply
#8

Quote:
Originally Posted by Skavanovski
Посмотреть сообщение
Add this at the very top of your script, under the includes:
pawn Код:
#pragma tabsize 0
that's it thanks very much...but my game mode compiled but i cant see textdraw on my server....why ?
Reply
#9

Under OnPlayerConnect:
pawn Код:
TextDrawShowForPlayer(playerid, Capstext);
TextDrawShowForPlayer(playerid, Wtext);
TextDrawShowForPlayer(playerid, cartext);
TextDrawShowForPlayer(playerid, tcartext);
TextDrawShowForPlayer(playerid, fliptext);
TextDrawShowForPlayer(playerid, sptext);
TextDrawShowForPlayer(playerid, jumptext);
TextDrawShowForPlayer(playerid, vtext);
Reply
#10

Quote:
Originally Posted by Skavanovski
Посмотреть сообщение
Under OnPlayerConnect:
pawn Код:
TextDrawShowForPlayer(playerid, Capstext);
TextDrawShowForPlayer(playerid, Wtext);
TextDrawShowForPlayer(playerid, cartext);
TextDrawShowForPlayer(playerid, tcartext);
TextDrawShowForPlayer(playerid, fliptext);
TextDrawShowForPlayer(playerid, sptext);
TextDrawShowForPlayer(playerid, jumptext);
TextDrawShowForPlayer(playerid, vtext);
it am using it an other file SERVER STROke and...my game mode is in other folder...sooo ?// in my game mode or ..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)