AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Loose indentation (https://forums.alliedmods.net/showthread.php?t=129437)

Mandiii 06-12-2010 20:34

Loose indentation
 
I get 2 warnings; "Loose indentation" from this code.

PHP Code:

public client_disconnect(id)
{
    new 
szKills[33];
    new 
szDeaths[33];
    
szKills[id] = get_user_frags(id);
    
szDeaths[id] = get_user_deaths(id);
    
    
nvault_set(g_VaultszKillsszDeaths);



wrecked_ 06-12-2010 20:45

Re: Loose indentation
 
Use tabs or spaces to indent your lines, not both. That warning occurs when you do that.

Mandiii 06-12-2010 20:58

Re: Loose indentation
 
Thank you. Didnt know what indent ment. :)

GXLZPGX 06-12-2010 21:16

Re: Loose indentation
 
Quote:

Originally Posted by Mandiii (Post 1207216)
Thank you. Didnt know what indent ment. :)

Lol'd

Mandiii 06-12-2010 21:37

Re: Loose indentation
 
Quote:

Originally Posted by GXLZPGX (Post 1207230)
Lol'd

Errm, why? English is not my native language.

GXLZPGX 06-12-2010 21:43

Re: Loose indentation
 
Quote:

Originally Posted by Mandiii (Post 1207240)
Errm, why? English is not my native language.

Google is your friend when you don't know a word.

drekes 06-13-2010 03:37

Re: Loose indentation
 
Quote:

Originally Posted by GXLZPGX (Post 1207243)
Google is your friend when you don't know a word.

Or wrecked


All times are GMT -4. The time now is 14:47.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.