Help With Switch & DCMD
#4

Dunno if this will work, u maybe forgot brackets, try it
Didnt test it hope it works for you, Peace
Код:
dcmd_dance(playerid,params[])
{
	
	if(!strval(params)) return SendClientMessage(playerid, RED, "Usage: /dance 1-4");
 	switch(strval(params))
 	{
	case 0: 
     {
     SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
     }
	case 1: 
     {
     SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);
     }
	case 2: 
     {
     SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);
     }
	case 3: 
     {
     SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4);
	}
	return 1;
}
Reply


Messages In This Thread
Help With Switch & DCMD - by [03]Garsino - 08.01.2010, 14:05
Re: Help With Switch & DCMD - by WolfeX - 08.01.2010, 14:36
Re: Help With Switch & DCMD - by [03]Garsino - 08.01.2010, 14:44
Re: Help With Switch & DCMD - by bajskorv123 - 08.01.2010, 14:52
Re: Help With Switch & DCMD - by Lajko1 - 08.01.2010, 15:24
Re: Help With Switch & DCMD - by Babul - 08.01.2010, 15:30
Re: Help With Switch & DCMD - by [03]Garsino - 08.01.2010, 16:08
Re: Help With Switch & DCMD - by Lajko1 - 08.01.2010, 16:21
Re: Help With Switch & DCMD - by Correlli - 08.01.2010, 16:41
Re: Help With Switch & DCMD - by [03]Garsino - 08.01.2010, 19:45

Forum Jump:


Users browsing this thread: 1 Guest(s)