floats - 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: floats (
/showthread.php?tid=515229)
floats -
n00el - 25.05.2014
hello. how i can call this?
PHP код:
new Float:HazBelso[][] =
{
{244.2293,313.5385,999.1484,271.5450},
{256.5515,311.2242,999.1484,270.8950}
};
for e.g. i need the firt pos, how i can call this? at the random spawn, its nevermind what is use by server, but it need sometime the firt, sometime the second?
Re: floats -
JFF - 25.05.2014
pawn Код:
public OnPlayerSpawn(playerid)
{
new Random = random(sizeof(HazBelso));
SetPlayerPos(playerid, HazBelso[Random][0], HazBelso[Random][1], HazBelso[Random][2]);
SetPlayerFacingAngle(playerid, HazBelso[Random][3]);
return 1;
}
Re: floats -
n00el - 25.05.2014
the random spawn is work for me.. but.. example: if the player is admin 1 set his pos to the firts pos. but his a 2 admin, set his pos the second pos?
and i need that, whit this:
PHP код:
new Float:HazBelso[][] =
{
{244.2293,313.5385,999.1484,271.5450},
{256.5515,311.2242,999.1484,270.8950}
};
Re: floats -
n00el - 25.05.2014
solved