floats
#1

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?
Reply
#2

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;
}
Reply
#3

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
}; 
Reply
#4

solved
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)