Raised This Month: $ Target: $400
 0% 

Loose identation


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DarlD
Senior Member
Join Date: Aug 2004
Old 10-19-2005 , 22:29   Loose identation
Reply With Quote #1

I keep getting this error when i try to compile.
Code:
/home/users/amxmodx/tmp3/phpYGOtpE.sma(32) : warning 217: loose indentation
/home/users/amxmodx/tmp3/phpYGOtpE.sma(40) : warning 217: loose indentation
/home/users/amxmodx/tmp3/phpYGOtpE.sma(47) : warning 217: loose indentation
/home/users/amxmodx/tmp3/phpYGOtpE.sma(55) : warning 217: loose indentation
/home/users/amxmodx/tmp3/phpYGOtpE.sma(68) : warning 217: loose indentation
/home/users/amxmodx/tmp3/phpYGOtpE.sma(70) : error 001: expected token: "}", but found "-end of file-"

1 Error.
Could not locate output file /home/groups/amxmodx/public_html/websc3/phpYGOtpE.amx (compile failed).
here is the full plugin code
Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <cstrike> #define PLUGIN "Model Rank" #define VERSION "1.0" #define AUTHOR "Author" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_cvar("amx_modelrank", "1")     register_event("ResetHUD", "resetModel", "b")     } public plugin_precache() {         precache_model("models/player/Meta-Skin/leet_t.mdl")         precache_model("models/player/Meta-Skin/leet_ct.mdl")         precache_model("models/player/Meta-Skin/killer_t.mdl")         precache_model("models/player/Meta-Skin/killer_ct.mdl")         precache_model("models/player/Meta-Skin/pro_t.mdl")         precache_model("models/player/Meta-Skin/pro_ct.mdl")         precache_model("models/player/Meta-Skin/newb_t.mdl")         precache_model("models/player/Meta-Skin/newb_ct.mdl")             return PLUGIN_CONTINUE } public resetModel(id, level, cid) {     new frags = get_user_frags(id)     new death = get_user_deaths(id)          if (frags < 19 && death < 9 ) {         new CsTeams:userTeam = cs_get_user_team(id)                 if (userTeam == CS_TEAM_T) {                         cs_set_user_model(id, "newb_t")         }                 else if(userTeam == CS_TEAM_CT) {                         cs_set_user_model(id, "newb_ct")         }      if (frags > 19 && death < 9) {         if (userTeam == CS_TEAM_T) {             cs_set_user_model(id, "killer_t")         }         else if(userTeam == CS_TEAM_CT) {             cs_set_user_model(id, "killer_ct")         }      if (frags > 39 && death < 19) {         if (userTeam == CS_TEAM_T) {             cs_set_user_model(id, "pro_t")         }         else if(userTeam == CS_TEAM_CT) {             cs_set_user_model(id, "pro_ct")                     }      if (frags > 59 && death < 29) {         if (userTeam == CS_TEAM_T){             cs_set_user_model(id, "leet_t")         }         else if(userTeam == CS_TEAM_CT) {             cs_set_user_model(id, "leet_ct")         }         else             cs_reset_user_model(id)         }     }         return PLUGIN_HANDLED } }
__________________
DarlD is offline
Send a message via MSN to DarlD
 



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 23:36.


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