[HELP]dcmd_shakin
#1

My handshake cmd don't wont to work tell me why??

Код:
dcmd(shake, 3, cmdtext);
Код:
dcmd_shake(playerid, params[])
    {
        if(!strlen(params))
        {
            SendClientMessage(playerid, COLOR_ERROR, "Use: /shake [ID]");
        }
        else
        {
            ID = strval(params);
            if(robtime[playerid] == 0)
            {
                if(ID != playerid)
                {
                    if(IsPlayerConnected(ID))
                    {
                        new oname[MAX_PLAYER_NAME];
                        GetPlayerName(ID, oname, sizeof(oname));
                        if(GetDistanceBetweenPlayers(playerid, ID) <= DISTANCE_BETWEEN_PLAYERS)
                        {
                        ApplyAnimation(playerid,"GANGS","hndshkfa_swt",4.0,0,0,0,0,0);
                        ApplyAnimation(ID,"GANGS","hndshkfa_swt",4.0,0,0,0,0,0);
                    		}
										}
								}
						}

        }
				return 1;
}
Reply
#2

Quote:
Originally Posted by Nexotronix
Код:
dcmd(shake, 3, cmdtext);
Because shake has 5 characters, not 3.
Reply
#3

Thnx man, i'm stupid in dcmd
Reply
#4

Quote:
Originally Posted by Nexotronix
Thnx man, i'm stupid in dcmd
If you're having problems with dcmd then you should really try the zcmd, it's more simple than dcmd and it's faster.
Reply
#5

Lol i was about to say that,

Off-Topic: Has your pic changed? Below your name
Reply
#6

Quote:
Originally Posted by Torran
Off-Topic: Has your pic changed? Below your name
Yeah, it did.
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)