[HELP]dcmd_shakin - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]dcmd_shakin (
/showthread.php?tid=132391)
[HELP]dcmd_shakin -
Nexotronix - 07.03.2010
My handshake cmd don't wont to work tell me why??
Код:
dcmd(shake, 3, cmdtext);
Код:
dcmd_shake(playerid, params[])
{
if(!strlen(params))
{
SendClientMessage(playerid, COLOR_ERROR, "Use: /shake [ID]");
}
else
{
ID = strval(params);
if(robtime[playerid] == 0)
{
if(ID != playerid)
{
if(IsPlayerConnected(ID))
{
new oname[MAX_PLAYER_NAME];
GetPlayerName(ID, oname, sizeof(oname));
if(GetDistanceBetweenPlayers(playerid, ID) <= DISTANCE_BETWEEN_PLAYERS)
{
ApplyAnimation(playerid,"GANGS","hndshkfa_swt",4.0,0,0,0,0,0);
ApplyAnimation(ID,"GANGS","hndshkfa_swt",4.0,0,0,0,0,0);
}
}
}
}
}
return 1;
}
Re: [HELP]dcmd_shakin -
Correlli - 07.03.2010
Quote:
Originally Posted by Nexotronix
Код:
dcmd(shake, 3, cmdtext);
|
Because
shake has 5 characters, not 3.
Re: [HELP]dcmd_shakin -
Nexotronix - 07.03.2010
Thnx man, i'm stupid in dcmd
Re: [HELP]dcmd_shakin -
Correlli - 07.03.2010
Quote:
Originally Posted by Nexotronix
Thnx man, i'm stupid in dcmd
|
If you're having problems with dcmd then you should really try the zcmd, it's more simple than dcmd and it's faster.
Re: [HELP]dcmd_shakin -
Torran - 07.03.2010
Lol i was about to say that,
Off-Topic: Has your pic changed? Below your name
Re: [HELP]dcmd_shakin -
Correlli - 07.03.2010
Quote:
Originally Posted by Torran
Off-Topic: Has your pic changed? Below your name
|
Yeah, it did.