/sit help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /sit help (
/showthread.php?tid=434960)
/sit help -
biggiephil234 - 04.05.2013
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;
}
Re: /sit help -
Warbles - 04.05.2013
What happens in game when u type the cmd
Re: /sit help -
Tanush123 - 04.05.2013
Are you using zcmd, ycmd or something similar to that on your script?
Re: /sit help -
biggiephil234 - 04.05.2013
Quote:
Originally Posted by Warbles
Post the error code you get.
|
The problem is, I don't get any error codes.
Re: /sit help -
biggiephil234 - 04.05.2013
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.
Re: /sit help -
XStormiest - 04.05.2013
ApplyAnimation , is the best , it can be your friend
Re: /sit help -
biggiephil234 - 04.05.2013
Quote:
Originally Posted by XStormiest
ApplyAnimation , is the best , it can be your friend 
|
Mind showing me an example?
Re: /sit help -
Warbles - 04.05.2013
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.
Re: /sit help -
biggiephil234 - 04.05.2013
Quote:
Originally Posted by Warbles
What happens in game when u type the cmd
|
Nothing happens, Not even a "Invalid Command" error.
Re: /sit help -
DobbysGamertag - 04.05.2013
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