Jump to content
  • 0

pomoc Chyby


damo115

Dotaz

cawte tu su chyby

C:\Users\Damián\Downloads\Beach Party-Release\Beach Party-Release\beach-party.pwn(127) : error 017: undefined symbol "cmd"
C:\Users\Damián\Downloads\Beach Party-Release\Beach Party-Release\beach-party.pwn(127) : error 017: undefined symbol "idx"
C:\Users\Damián\Downloads\Beach Party-Release\Beach Party-Release\beach-party.pwn(128) : error 017: undefined symbol "tmp"
C:\Users\Damián\Downloads\Beach Party-Release\Beach Party-Release\beach-party.pwn(133) : error 017: undefined symbol "tmp"

a tu riadky

127:cmd = strtok(cmdtext, idx);
128:if(!strlen(tmp))
133:hudba = strval(tmp);

 

cele:

if(strcmp(cmdtext, "/hudba", true) == 0)
{
cmd = strtok(cmdtext, idx);
   if(!strlen(tmp))
{
SendClientMessage(playerid,RED,"[ ! ]: /hudba [1-7]");
return 1;
}
hudba = strval(tmp);
if(hudba < 1 || hudba > 7)
{
	SendClientMessage(playerid,RED,"[ ! ]: /hudba [1-7]");
   return 1;
}
if(hudba == 1)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
} else if(hudba == 2) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);
   } else if(hudba == 3) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);
} else if(hudba == 4) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4);
} else if(hudba == 5) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4);
} else if(hudba == 6) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4);
} else if(hudba == 7) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4);
}
return 1;
   }

Link to comment
Share on other sites

1 odpověd na tuto otázku

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...