Raised This Month: $51 Target: $400
 12% 

loose identation error in stupid little function


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Isobold
Veteran Member
Join Date: Mar 2004
Old 07-19-2005 , 13:14   loose identation error in stupid little function
Reply With Quote #1

Code:
public checkDeath() {     new playernum, pl     new a_ids[32]         get_players(a_ids, playernum, "ac")         for(new i = 0; i < playernum; i++) {         pl = a_ids[i]         if(b_tobeslayed[pl])             client_cmd(pl,"kill")     }     return PLUGIN_HANDLED }

/home/groups/amxmodx/tmp/php5YaGLl.sma(210) : warning 217: loose indentation
/home/groups/amxmodx/tmp/php5YaGLl.sma(217) : warning 217: loose indentation


I can not figure out what is wrong with this???
Isobold is offline
WaZZeR++
Veteran Member
Join Date: Mar 2005
Location: Sweden
Old 07-19-2005 , 13:17  
Reply With Quote #2

everything look right...do you have a tab and not spaces? you cant mix them
WaZZeR++ is offline
Send a message via MSN to WaZZeR++
Isobold
Veteran Member
Join Date: Mar 2004
Old 07-19-2005 , 14:03  
Reply With Quote #3

Never heard about it, but it fixed my problem. I told ultraedit to make spaces from all tabs ...

1 Karma for this fast help
Isobold is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 07-19-2005 , 14:31  
Reply With Quote #4

While that worked out for you, I'd highly suggest converting your spaces to tabs. If you want to question me as to why, I'll find a link for you to read. Only if you question me about it though.
Brad is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:45.


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