Need Help!
#1

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;
}
Reply
#2

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;
}
Reply
#3

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

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.
Reply
#5

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

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.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)