18.04.2012, 14:33
Can anyone give me an example on how to create an anim(drinking) and show an object in hand while anim is on.
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)
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
}
}
}
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
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);
}
}