[HELP]Anims and object - 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: [HELP]Anims and object (
/showthread.php?tid=335440)
[HELP]Anims and object -
nilanjay - 18.04.2012
Can anyone give me an example on how to create an anim(drinking) and show an object in hand while anim is on.
Re: [HELP]Anims and object -
Shetch - 18.04.2012
https://sampwiki.blast.hk/wiki/AttachObjectToPlayer
https://sampwiki.blast.hk/wiki/ApplyAnimation
Re: [HELP]Anims and object -
nilanjay - 18.04.2012
oh thx
Re: [HELP]Anims and object -
nilanjay - 18.04.2012
I got a problem with anims when I code.
Errors
Код:
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\0.3d\gamemodes\test.pwn(432) : error 035: argument type mismatch (argument 2)
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\0.3d\gamemodes\test.pwn(439) : error 035: argument type mismatch (argument 2)
Codes
pawn Код:
if(dialogid == 4)
{
if(response == 1)
{
if(listitem == 0)
{
new string[128];
format(string, sizeof(string), "[SYSTEM]:Here is your juice.");
SendClientMessage(playerid, -1, string);
ApplyAnimation(playerid, SPECIAL_ACTION_DRINK_BEER, 4, 1, 1, 1, 1, 1, 1);// line 432
}
if(listitem == 1)
{
new string[128];
format(string, sizeof(string), "[SYSTEM]:Here is your tea.");
SendClientMessage(playerid, -1, string);
ApplyAnimation(playerid, SPECIAL_ACTION_DRINK_BEER, 4, 1, 1, 1, 1, 1, 1);// line 439
}
}
}
Re: [HELP]Anims and object -
ViniBorn - 18.04.2012
pawn Код:
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
pawn Код:
if(dialogid == 4)
{
if(response == 1)
{
new string[128];
if(listitem == 0)
{
format(string, sizeof(string), "[SYSTEM]:Here is your juice.");
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);// line 432
}
if(listitem == 1)
{
format(string, sizeof(string), "[SYSTEM]:Here is your tea.");
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);// line 439
}
SendClientMessage(playerid, -1, string);
}
}
Re: [HELP]Anims and object -
nilanjay - 18.04.2012
oh thx