SA-MP Forums Archive
Have some warning - 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: Have some warning (/showthread.php?tid=616899)



Have some warning - thienle7090 - 12.09.2016

Код:
./includes/NGGv5.1.pwn(108072) : warning 217: loose indentation
./includes/NGGv5.1.pwn(108094) : warning 217: loose indentation
need some help



Re: Have some warning - JordanZaundd - 12.09.2016

It's because you haven't properly indented your script and it's messy. You should probably clean it up. Paste this and it should fix your issues.

PHP код:
    if(dialogid == BENVIENMAU)
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                if(
PlayerInfo[playerid][pCash] < 20000)
                    
SendClientMessageEx(playeridCOLOR_LIGHTBLUE"Ban Khфng du tiкn dк su dung dich vu nаy!");
                else
                {
                    
GivePlayerCash(playerid, -20000);
                    
SetPlayerHealth(playerid35);
                    return 
1;
                }
            }
            if(
listitem == 1)
            {
                if(
PlayerInfo[playerid][pCash] < 30000)
                    
SendClientMessageEx(playeridCOLOR_LIGHTBLUE"Ban Khфng du tiкn dк su dung dich vu nаy!");
                else
                {
                    
GivePlayerCash(playerid, -30000);
                    
SetPlayerHealth(playerid50);
                    return 
1;
                }
            }
            if(
listitem == 2)
            {
                if(
PlayerInfo[playerid][pCash] < 45000)
                    
SendClientMessageEx(playeridCOLOR_LIGHTBLUE"Ban Khфng du tiкn dк su dung dich vu nаy!");
                else
                {
                    
GivePlayerCash(playerid, -45000);
                    
SetPlayerHealth(playerid100);
                    return 
1;
                }
            }
            if(
listitem == 3)
            {
                if(
PlayerInfo[playerid][pCash] < 85000)
                    
SendClientMessageEx(playeridCOLOR_LIGHTBLUE"Ban Khфng du tiкn dк su dung dich vu nаy!");
                else
                {
                    
GivePlayerCash(playerid, -85000);
                    
SetPlayerHealth(playerid100);
                    
SetPlayerArmour(playerid50);
                    return 
1;
                }
            }
        }
    } 



Re: Have some warning - Freaksken - 12.09.2016

https://sampforum.blast.hk/showthread.php?tid=274028


Re: Have some warning - thienle7090 - 12.09.2016

thanks Bro