AddHouse Help - 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: AddHouse Help (
/showthread.php?tid=371568)
AddHouse Help -
xSkullx - 23.08.2012
Hi everybody, it's me again with a problem this time.
i added
forward AddHouse();
and i need to make a public function..and idk how, can you help me?
Re: AddHouse Help -
XStormiest - 23.08.2012
pawn Код:
forward AddHouse(para1,para2,para3,para4...);
public AddHouse(......)
{
return 1;
}
you can make something like this
Re: AddHouse Help -
ThePhenix - 23.08.2012
pawn Код:
#include <a_samp>
//Forwards:
AddHouse();
........
........
...........
public AddHouse(playerid);
//do something here
return 1;
}
Re: AddHouse Help -
XStormiest - 23.08.2012
...? hm....
pawn Код:
forward AddHouse(id,houseid);
public OnPlayerConnect(playerid)
{
SetTimerEx("AddHouse",2000,true,"ud",id,houseid);
return 1;
}
public AddHouse(id,houseid)
{
//do something here
return 1;
}