help piss command -
Rix70 - 18.08.2016
C:\Users\Linus\Desktop\Freeroam & Roleplay v0.1 - Deal closer(2)\Freeroam & Roleplay v0.1 - Deal closer\filterscripts\Piss.pwn(23) : error 021: symbol already defined: "SendClientMessage"
C:\Users\Linus\Desktop\Freeroam & Roleplay v0.1 - Deal closer(2)\Freeroam & Roleplay v0.1 - Deal closer\filterscripts\Piss.pwn(27) : error 021: symbol already defined: "SendClientMessage"
C:\Users\Linus\Desktop\Freeroam & Roleplay v0.1 - Deal closer(2)\Freeroam & Roleplay v0.1 - Deal closer\filterscripts\Piss.pwn(2
: error 010: invalid function or declaration
C:\Users\Linus\Desktop\Freeroam & Roleplay v0.1 - Deal closer(2)\Freeroam & Roleplay v0.1 - Deal closer\filterscripts\Piss.pwn(4
: error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
// Created by Makaveli
#include <a_samp>
#include <zcmd>
#define COLOR_GREEN 0x008000FF
public OnFilterScriptInit()
{
print("Pee pee!");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
main()
{
print("Pee pee!");
}
public SendClientMessage(playerid)
{
SetPVarInt(playerid, "pissing", 0);
PreloadAnimLib(playerid, "PAULNMAC");
SendClientMessage(playerid, COLOR_GREEN, "Type /piss");
return 1;
}
CMD
iss(playerid, params[])
{
if(GetPVarInt(playerid, "pissing") == 0)
{
ApplyAnimation(playerid,"PAULNMAC","Piss_loop",3.0 ,1,1,0,0,0);
SetPlayerAttachedObject(playerid,0,18676,1,-1.900000,0.300000,0.000000,148.199584,90.099914,-55.199981,1.000000,-9.899993,1.000000);
SetPVarInt(playerid, "pissing", 1);
}
else
{
RemovePlayerAttachedObject(playerid,0);
ClearAnimations(playerid);
SetPVarInt(playerid, "pissing", 0);
}
return 1;
}
stock PreloadAnimLib(playerid, animlib[])
{
ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0 ,0);
return 1;
}
Re: help piss command -
Pavintharan - 18.08.2016
post ss idk how to solve your problem without number code
Re: help piss command -
Rix70 - 18.08.2016
http://pastebin.com/bmsF9ghF
Re: help piss command -
DeeadPool - 18.08.2016
Here you go :-
Код:
#include <a_samp>
#include <zcmd>
#define COLOR_GREEN 0x008000FF
public OnFilterScriptInit()
{
print("Pee pee!");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
main()
{
print("Pee pee!");
}
CMD:piss(playerid, params[])
{
if(GetPVarInt(playerid, "pissing") == 0)
{
ApplyAnimation(playerid,"PAULNMAC","Piss_loop",3.0,1,1,0,0,0);
SetPlayerAttachedObject(playerid,0,18676,1,-1.900000,0.300000,0.000000,148.199584,90.099914,-55.199981,1.000000,-9.899993,1.000000);
SetPVarInt(playerid, "pissing", 1);
}
else
{
RemovePlayerAttachedObject(playerid,0);
ClearAnimations(playerid);
SetPVarInt(playerid, "pissing", 0);
}
return 1;
}
stock PreloadAnimLib(playerid, animlib[])
{
ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
return 1;
}
You just had to remove public SendClientMessage(playerid).