/sit help
#1

Hey guys, I'm having a problem with "/sit". I can't seem to get it to work, In game it doesn't say Invalid command either, My script recompiles fine too, Here is the code i am using It just doesn't wanna work :/ Any help?
Код:
	if (strcmp(cmdtext, "/sit", true) == 0)
	{
	    SetPlayerSpecialAction(playerid,12);
	    return 1;
	}
I also tried this first
Код:
	if (strcmp(cmdtext, "/sit", true) == 0)
	{
	    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SITTING);
	    return 1;
	}
Reply
#2

What happens in game when u type the cmd
Reply
#3

Are you using zcmd, ycmd or something similar to that on your script?
Reply
#4

Quote:
Originally Posted by Warbles
Посмотреть сообщение
Post the error code you get.
The problem is, I don't get any error codes.
Reply
#5

Quote:
Originally Posted by Tanush123
Посмотреть сообщение
Are you using zcmd, ycmd or something similar to that on your script?
Nope :/ it just doesn't wanna work, I'm dumbfounded.
Reply
#6

ApplyAnimation , is the best , it can be your friend
Reply
#7

Quote:
Originally Posted by XStormiest
Посмотреть сообщение
ApplyAnimation , is the best , it can be your friend
Mind showing me an example?
Reply
#8

It that doesn't work search up a animation menu on the forums and pull the sit command out of there. Don't forget to give the author credit though.
Reply
#9

Quote:
Originally Posted by Warbles
Посмотреть сообщение
What happens in game when u type the cmd
Nothing happens, Not even a "Invalid Command" error.
Reply
#10

pawn Код:
if (strcmp(cmdtext, "/sit", true) == 0)
{
    ApplyAnimation(playerid,"PED","SEAT_IDLE",4,0,0,0, 1,0,1);
    return 1;
}
Not too familiar with converting from ZCMD to STRCMP im afraid that works fine for me though hope it helped
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)