1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

CWU appears as "Unassigned" or "Joining/Connected" on the scoreboard

Discussion in 'Discussion' started by Soleedus, Jan 11, 2013.

  1. Code:
    --[[
    	© 2012 CloudSixteen.com do not share, re-distribute or modify
    	without permission of its author ([email protected]).
    --]]
    
    local FACTION = Clockwork.faction:New("Civil Worker's Union");
    
    FACTION.useFullName = true;
    FACTION.whitelist = true;
    FACTION.material = "halfliferp/factions/CWU";
    FACTION.models = {
    	male = {
    		"models/Humans/Group02/male_02.mdl",
    		"models/Humans/Group02/male_04.mdl",
    		"models/Humans/Group02/male_06.mdl",
    		"models/Humans/Group02/male_08.mdl",
    	};
    	female = {
    		"models/Humans/Group02/Female_02.mdl",
    		"models/Humans/Group02/Female_04.mdl",
    		"models/Humans/Group02/Female_07.mdl",
    	};
    };
    
    -- Called when a player is transferred to the faction.
    function FACTION:OnTransferred(player, faction, name)
    	if (faction.name != FACTION_CITIZEN) then
    		return false;
    	end;
    end;
    
    FACTION_CWU = FACTION:Register();
    I'm using the above faction script for the CWU. I'm not entirely sure why, but the faction appears as "Joining/Connecting" when picking a CWU character immediately after joining, or "Unassigned" any time else.

    Was wondering if anyone else had this issue and how I could possibly rectify it. I compared the code to other functional factions and I couldn't spot any issues.
     
  2. The last model in the arrays for the genders should not have a comma after it.

    Also post your CWU class.
     
  3. uhhhh, class?
     
  4. Yes, there should be a class for CWU. Classes folder..
     
  5. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaand fixed

    lol
     
  6. TJjokerR

    TJjokerR Formerly known as TJjokerR

    Doesn't matter in Lua...
     
  7. It's bad practice.
     
  8. It also makes me die a little inside..
     

Previous Readers (Total: 0)