SA-MP Forums Archive
error 017: undefined symbol "SPECIAL_ACTION_PISSING" - 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: error 017: undefined symbol "SPECIAL_ACTION_PISSING" (/showthread.php?tid=580846)



error 017: undefined symbol "SPECIAL_ACTION_PISSING" - PiLLoW - 08.07.2015

Quote:

PlayerInfo[playerid][pPissTime] = 60;

if(IsPlayerInAnyVehicle(playerid))
{
format(string, sizeof(string), "%s (%d) Pisses In %s Vehicle.",PlayerInfo[playerid][pName],playerid,PossessiveGenderPronouns[PlayerInfo[playerid][pGender]]);
SendClientMessageToAll(GetPlayerColor(playerid), string);
}else{
format(string, sizeof(string), "%s (%d) Takes A Piss.",PlayerInfo[playerid][pName],playerid);
SendClientMessageToAll(GetPlayerColor(playerid), string);
//ApplyAnimation(playerid, "PAULNMAC", "Piss_loop", 3.0, 0, 0, 0, 0, 0, 1);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_PISSING);
//ApplyAnimation(playerid, "PAULNMAC", "Piss_in", 3.0, 0, 0, 0, 0, 0, 1); // Pissing
}
return 1;
}

Here's the code guys anyone can help me with this animation


AW: error 017: undefined symbol "SPECIAL_ACTION_PISSING" - Kaliber - 08.07.2015

Dude...just ******...

Write this @top of the script:

PHP код:
#define SPECIAL_ACTION_PISSING 68 



Re: error 017: undefined symbol "SPECIAL_ACTION_PISSING" - Mouiz - 08.07.2015

Its Easy,Use This:


Код:
PlayerInfo[playerid][pPissTime] = 60;

if(IsPlayerInAnyVehicle(playerid))
{
format(string, sizeof(string), "%s (%d) Pisses In %s Vehicle.",PlayerInfo[playerid][pName],playerid,PossessiveGenderPronouns[PlayerInfo[playerid][pGender]]);
SendClientMessageToAll(GetPlayerColor(playerid), string);
}else{
format(string, sizeof(string), "%s (%d) Takes A Piss.",PlayerInfo[playerid][pName],playerid);
SendClientMessageToAll(GetPlayerColor(playerid), string);
//ApplyAnimation(playerid, "PAULNMAC", "Piss_loop", 3.0, 0, 0, 0, 0, 0, 1);
SetPlayerSpecialAction(playerid, 68);
//ApplyAnimation(playerid, "PAULNMAC", "Piss_in", 3.0, 0, 0, 0, 0, 0, 1); // Pissing
}
return 1;
}
Or


Код:
#define SPECIAL_ACTION_PISSING 68

PlayerInfo[playerid][pPissTime] = 60;

if(IsPlayerInAnyVehicle(playerid))
{
format(string, sizeof(string), "%s (%d) Pisses In %s Vehicle.",PlayerInfo[playerid][pName],playerid,PossessiveGenderPronouns[PlayerInfo[playerid][pGender]]);
SendClientMessageToAll(GetPlayerColor(playerid), string);
}else{
format(string, sizeof(string), "%s (%d) Takes A Piss.",PlayerInfo[playerid][pName],playerid);
SendClientMessageToAll(GetPlayerColor(playerid), string);
//ApplyAnimation(playerid, "PAULNMAC", "Piss_loop", 3.0, 0, 0, 0, 0, 0, 1);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_PISSING);
//ApplyAnimation(playerid, "PAULNMAC", "Piss_in", 3.0, 0, 0, 0, 0, 0, 1); // Pissing
}
return 1;
}



Re: error 017: undefined symbol "SPECIAL_ACTION_PISSING" - PiLLoW - 08.07.2015

Thank you so much mouiz