SA-MP Forums Archive
Need help + rep :D - 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: Need help + rep :D (/showthread.php?tid=310147)



Need help + rep :D - Anthony_X - 10.01.2012

i got this when i complit the script
C:\Users\User\Desktop\SA-MP Raven RolePlay\Modern Mafia RPG\samp03\gamemodes\Modern.pwn(25175) : warning 217: loose indentation
C:\Users\User\Desktop\SA-MP Raven RolePlay\Modern Mafia RPG\samp03\gamemodes\Modern.pwn(25176) : warning 217: loose indentation

This the lines
{
format(string, 128, "Gun%d", s);
if( strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGuns][s] = strval( val );
}

That worked befor i dint know why that happen


Re: Need help + rep :D - Twinki1993 - 10.01.2012

Quote:

if( strcmp( key , string , true ) == 0 )
{
val = ini_GetValue( Data ); PlayerInfo[playerid][pGuns][s] = strval( val );
}

maybe? :P


Re: Need help + rep :D - [HiC]TheKiller - 10.01.2012

Press tab on those lines to make them proper indented.


Re: Need help + rep :D - Norck - 10.01.2012

You can also add
pawn Код:
#pragma tabsize 0
to prevent such warnings


Re: Need help + rep :D - Anthony_X - 10.01.2012

Thank you guys !!