The most important question, as you never stated it:
is this a multiplayer setup?
And if it is:
You have to create both players on the server.
Then you have to assign actions on the server (one for each player), that
have for example a while(1) {....}
loop, that can react on key-inputs, and thus move the player it is assigned to.
To controll the player from the client, you have to send movecommands to the server
use send_var(); on the client.
for example:
var player1_forward; //variable
...
if(key_w){player1_forward=1;send_var(player1_forward);}
...
in the action (run on the server):
if(player1_forward){ent_move ..... player1 ... ; player1_forward=0;}
Post your code, if you have no Idea what is wrong with it.
Also try not to get into multiplayer, if you have not enough practise
with singleplayer code.