Server:Unknown Command
#1

why ?


Код:
	if (strcmp("/dance", cmdtext, true) == 0)
		{
        if(!IsAblePedAnimation(playerid)) return 1;
        switch(strval(params))
        {
        case 1: SetPlayerSpecialAction(playerid, 5);
        case 2: SetPlayerSpecialAction(playerid, 6);
        case 3: SetPlayerSpecialAction(playerid, 7);
        case 4: SetPlayerSpecialAction(playerid, 8);
        default: SendClientMessage(playerid, COLOR_WHITE, "USAGE: /dance [1-4]");
        }
        return 1;
Reply
#2

Try this:
PHP код:
if(strcmp("/dance "cmdtexttrue8) == 0)
{
    if(!
IsAblePedAnimation(playerid)) return 1;
    switch(
strval(params))
    {
        case 
1SetPlayerSpecialAction(playerid5);
        case 
2SetPlayerSpecialAction(playerid6);
        case 
3SetPlayerSpecialAction(playerid7);
        case 
4SetPlayerSpecialAction(playerid8);
        default: 
SendClientMessage(playeridCOLOR_WHITE"USAGE: /dance [1-4]");
    }
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)