Velocity (speed)
#1

Hi all,

I've got a lil' problem. I wanted to do a speed difference between specified classes. My code is:
Код:
    new Keys,ud,lr,moving;
    GetPlayerKeys(playerid,Keys,ud,lr);
    if(ud < 0)
		moving = 1;
	if(moving == 1) {
	    print("DEBUG 1");
	    new Float:xy[1+1];
	    GetXYInFrontOfPlayer(playerid,xy[0],xy[1],20);
	    switch(GetPlayerSkin(playerid)) {
	        case 52,51: {
	            print("DEBUG 2");
	            SetPlayerVelocity(playerid,xy[0],xy[1],0);
			}
			case 242,241: {
			    SetPlayerVelocity(playerid,-xy[0],-xy[1],0);
			}
		}
	}
This is under OnPlayerKeyStateChange.
When I press W nothing happens, but when I run around it says Loading... and that strange screen...

So what's the prob?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)