SA-MP Forums Archive
Need Help! - 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! (/showthread.php?tid=375877)



Need Help! - MrReBzz - 08.09.2012

I Just Joined The SA-MP Forums And I Need A Little Help! I Get A Warning Like So :

Код:
E:\Scripts\CrAzy Town RolePlay\gamemodes\CTR.pwn(473) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
And The Line Which I Get The Warning Is The return Line.. Please Help! And Also Tell Me How To Rep+

Код:
{
	//car fix start
       if(PRESSED(KEY_SUBMISSION))
 	{
       new vehicleid = GetPlayerVehicleID(playerid);
       if(IsPlayerInVehicle(playerid, vehicleid))
       {
       		SetVehicleHealth(vehicleid,1000.0);
            RepairVehicle(GetPlayerVehicleID(playerid));
			PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
       		SendClientMessage(playerid,GREEN,"(INFO) Your Vehicle Has Been Sucessfully Repaired For 1000$!");
       		GivePlayerMoney(playerid, -1000);

	   }

	}
		return 1;
}



Re: Need Help! - clarencecuzz - 08.09.2012

pawn Код:
{
    //car fix start
    if(PRESSED(KEY_SUBMISSION))
    {
       new vehicleid = GetPlayerVehicleID(playerid);
       if(IsPlayerInVehicle(playerid, vehicleid))
       {
            SetVehicleHealth(vehicleid,1000.0);
            RepairVehicle(GetPlayerVehicleID(playerid));
            PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
            SendClientMessage(playerid,GREEN,"(INFO) Your Vehicle Has Been Sucessfully Repaired For 1000$!");
            GivePlayerMoney(playerid, -1000);

       }

    }
    return 1;
}



Re: Need Help! - MrReBzz - 08.09.2012

Thanks A Lot clarencecuzz !!! I Dont Know How to +Rep. But when i get to Know i will sure +rep You!!!


Re: Need Help! - Glint - 08.09.2012

That warning won't affect your gameplay, but makes your code look bad, however you can ignore such warnings by using.
pawn Код:
#pragma tabsize 0
On top of your script.


Re: Need Help! - MrReBzz - 08.09.2012

Ok! Thanks Lexi! But Can You Tell Me How to +Rep?


Re: Need Help! - Glint - 08.09.2012

Quote:
Originally Posted by MrReBzz
Посмотреть сообщение
Ok! Thanks Lexi! But Can You Tell Me How to +Rep?
Press the star button under our name, but don't bother to give us rep, we won't receive it if you have less then 50 posts.