c++ space problem
<p>Why wont this command work if it has space in it?</p>

<p>I wanna use this like <code>alani hur up</code> and <code>alani hur down</code> but it dont work, i tried renaming the command to <code>alanihur</code> just to see if its some other problem but it worked then i did that so.</p>

<p>Why cant i have space?</p>

<p>blabla.h</p>

<pre><code>bool Levitate(Creature* creature, const std::string&amp; cmd, const std::string&amp; param);
</code></pre>

<p>blabla.cpp</p>

<pre><code>{"alani hur",&amp;Commands::Levitate}


bool Commands::Levitate(Creature* creature, const std::string &amp;cmd, const std::string &amp;param)
{

 if(param == "up"){
     Position newPos = creature-&gt;getPosition();
     newPos.z--;
     if(g_game.internalTeleport(creature, newPos) == RET_NOERROR){
        g_game.addMagicEffect(newPos, NM_ME_ENERGY_AREA);       
    return true;
    }
 }
 else if(param == "down"){
                  Position newPos = creature-&gt;getPosition();
newPos.z++;
Tile* tile = g_game.getTile(newPos.x, newPos.y, newPos.z);      
if(tile &amp;&amp; tile-&gt;creatures.size() != 0){
    newPos.x++;
}

if(g_game.internalTeleport(creature, newPos) == RET_NOERROR){
        g_game.addMagicEffect(newPos, NM_ME_ENERGY_AREA);

    return true;
}

 }

 return false;
}
</code></pre>

<p>Thanks alot and exuse my kind off poor english</p>
