What's wrong?
#1

I have a code, what is for changing spawn after a certain time and it just doesn't work.

Here:

pawn Код:
public Restart(playerid)
{
    switch (CurrentMap)
    {
        case 0:
        {
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                    switch (gTeam[i])
                    {
                        case 1:
                        {
                            printf("Working");
                            new Spawn = random(sizeof(MapTwoSpawnsTeam1));
                            SetPlayerPos(i,MapTwoSpawnsTeam1[Spawn][0],MapTwoSpawnsTeam1[Spawn][1],MapTwoSpawnsTeam1[Spawn][2]);
                            SetPlayerFacingAngle(i,MapTwoSpawnsTeam1[Spawn][4]);
                        }
                        case 2:
                        {
                            new Spawn = random(sizeof(MapTwoSpawnsTeam2));
                            SetPlayerPos(i,MapTwoSpawnsTeam2[Spawn][0],MapTwoSpawnsTeam2[Spawn][1],MapTwoSpawnsTeam2[Spawn][2]);
                            SetPlayerFacingAngle(i,MapTwoSpawnsTeam2[Spawn][4]);
                        }
                    }
                }
            }
            CurrentMap = 1; //this is map2
            //Note: CurrentMap = 0; is map1

            SendRconCommand("mapname Highrise");
        }
        case 1: //this means map2 changes to map3
        {
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                    switch (gTeam[i])
                    {
                        case 1: //case 1 is team 1
                        {
                            new Spawn = random(sizeof(MapThreeSpawnsTeam1));
                            SetPlayerPos(i,MapThreeSpawnsTeam1[Spawn][0],MapThreeSpawnsTeam1[Spawn][1],MapThreeSpawnsTeam1[Spawn][2]);
                            SetPlayerFacingAngle(i,MapThreeSpawnsTeam1[Spawn][4]);
                        }
                        case 2: //now change the positions of team2
                        {
                            new Spawn = random(sizeof(MapThreeSpawnsTeam2));
                            SetPlayerPos(i,MapThreeSpawnsTeam2[Spawn][0],MapThreeSpawnsTeam2[Spawn][1],MapThreeSpawnsTeam2[Spawn][2]);
                            SetPlayerFacingAngle(i,MapThreeSpawnsTeam2[Spawn][4]);
                        }
                    }
                }
            }
            CurrentMap = 2;

            SendRconCommand("mapname Highroof");
        }
    }
    return 1;
}
If you noticed the "printf" in there, it doesn't show on the console.

Here is what changed the map..

pawn Код:
public CountDownTimer()
{
    CountDownFromAmount--;
    new string[128];
    format(string, 128, "%d", CountDownFromAmount);
    GameTextForAll(string, 990, 5);
    printf(string);
    if (CountDownFromAmount == 0)
    {
        GameTextForAll("End of round!!", 3000, 5);
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            CountDownFromAmount = 603;
            Restart(i);
        }
    }
    return 1;
}
Can someone help?

Thanks.
Reply
#2

Why do you have a loop in that public function when it has the playerid that you need passed to it already? You don't need to do that at all, for example:

pawn Код:
public Restart(playerid)
{
    switch (gTeam[playerid])
    {
        case 1:
        {
            printf("Working");
            new Spawn = random(sizeof(MapTwoSpawnsTeam1));
            SetPlayerPos(i,MapTwoSpawnsTeam1[Spawn][0],MapTwoSpawnsTeam1[Spawn][1],MapTwoSpawnsTeam1[Spawn][2]);
            SetPlayerFacingAngle(i,MapTwoSpawnsTeam1[Spawn][4]);
        }
        case 2:
        {
            new Spawn = random(sizeof(MapTwoSpawnsTeam2));
            SetPlayerPos(i,MapTwoSpawnsTeam2[Spawn][0],MapTwoSpawnsTeam2[Spawn][1],MapTwoSpawnsTeam2[Spawn][2]);
            SetPlayerFacingAngle(i,MapTwoSpawnsTeam2[Spawn][4]);
        }
    }
}
Then there's also no point in having that global stuff changed in your Restart function, change it in your other function, like so:

pawn Код:
public CountDownTimer()
{
    CountDownFromAmount--;
    new string[128];
    format(string, 128, "%d", CountDownFromAmount);
    GameTextForAll(string, 990, 5);
    printf(string);
    if (CountDownFromAmount == 0)
    {
        GameTextForAll("End of round!!", 3000, 5);
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            Restart(i);
        }
        CountDownFromAmount = 603; // Why was this in the loop, why would you set it to 603 500 times?
    }

    switch(CurrentMap) // Then do the rest of your CurrentMap code here
    {
        case 0:
        {
            CurrentMap = 1; //this is map2

            SendRconCommand("mapname Highrise");
        }
    }
    return 1;
}
See how much better that is? Now you don't have any redundant loops.
Reply
#3

When I did that, I got this on the console:

Код:
[21:39:12] Number of vehicle models: 1
[21:39:28] Value of current map: 0
[21:39:28] Flawless victory
[21:39:28] Player is connected - ID: 0 | Team: 0
[21:39:28] Value of current map: 1
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
Reply
#4

Quote:
Originally Posted by iGetty
Посмотреть сообщение
When I did that, I got this on the console:

Код:
[21:39:12] Number of vehicle models: 1
[21:39:28] Value of current map: 0
[21:39:28] Flawless victory
[21:39:28] Player is connected - ID: 0 | Team: 0
[21:39:28] Value of current map: 1
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
[21:39:28] Value of current map: 2
Check my previous post, I have edited it.

Also the fact that it doesn't work should be fairly obvious with that print data, look at the players team, it's 0? You don't do anything for a player with a team of 0.
Reply
#5

I've changed it now. The other problem is, how do I set a team for a player? If you look at this:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(gPlayerLogged[playerid] == 0)
    {
        ShowPlayerDialog(playerid,1234, DIALOG_STYLE_MSGBOX,"Server Rules","Cheating and Hacking is not allowed\nAdvertising other Server's is not allowed\nSpawn Killing is not allowed\nUse of foul language against opponents is forbidden (EG: Swearing/Name calling)","Accept","Refuse");
    }
    else return 1;
   
    if(classid == 2)
    {
        GameTextForPlayer(playerid, "~r~ENEMY!~n~~w~AK-47~n~9MM~n~MP5~n~SNIPER RIFLE~n~TEAR GAS~n~FRAG GRENADE", 3000, 5);
    }
    else if(classid == 1)
    {
        GameTextForPlayer(playerid, "~r~ARMY!~n~~w~M4 Carbine~n~9MM~n~MP5~n~SNIPER RIFLE~n~TEAR GAS~n~FRAG GRENADE", 3000, 5);
    }
   
    SetPlayerPos(playerid, player_x,player_y,player_z);
    SetPlayerFacingAngle(playerid, player_angle);
    SetPlayerCameraPos(playerid, camera_x,camera_y,camera_z);
    SetPlayerCameraLookAt(playerid, player_x,player_y,player_z);
    ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1);
    if (PlayerInfo[playerid][SpawnDance]) PlayerInfo[playerid][SpawnTimer] = SetTimerEx("MoveCamera", moving_speed, true, "i", playerid);
    PlayerInfo[playerid][SpawnDance] = false;
    SetPlayerTeamFromClass(playerid, classid);
    return 1;
}
and
pawn Код:
SetPlayerTeamFromClass(playerid, classid)
{
    if(classid == 2)
    {
        gTeam[playerid] = ENEMY;
    }
    if(classid == 1)
    {
        gTeam[playerid] = ARMY;
    }
}
Is that right?
Reply
#6

Class ID's probably start at 0, not at 1. So if you have two classes in the spawn selection screen, you have 0 and 1, not 1 and 2.

Why do you have that extra function "SetPlayerTeamFromClass" anyway? Just do it in the original if statement you have:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(gPlayerLogged[playerid] == 0)
    {
        ShowPlayerDialog(playerid,1234, DIALOG_STYLE_MSGBOX,"Server Rules","Cheating and Hacking is not allowed\nAdvertising other Server's is not allowed\nSpawn Killing is not allowed\nUse of foul language against opponents is forbidden (EG: Swearing/Name calling)","Accept","Refuse");
    }
    else return 1;
   
    if(classid == 2)
    {
        GameTextForPlayer(playerid, "~r~ENEMY!~n~~w~AK-47~n~9MM~n~MP5~n~SNIPER RIFLE~n~TEAR GAS~n~FRAG GRENADE", 3000, 5);
        gTeam[playerid] = ENEMY;
    }
    else if(classid == 1)
    {
        GameTextForPlayer(playerid, "~r~ARMY!~n~~w~M4 Carbine~n~9MM~n~MP5~n~SNIPER RIFLE~n~TEAR GAS~n~FRAG GRENADE", 3000, 5);
        gTeam[playerid] = ARMY;
    }
   
    SetPlayerPos(playerid, player_x,player_y,player_z);
    SetPlayerFacingAngle(playerid, player_angle);
    SetPlayerCameraPos(playerid, camera_x,camera_y,camera_z);
    SetPlayerCameraLookAt(playerid, player_x,player_y,player_z);
    ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1);
    if (PlayerInfo[playerid][SpawnDance]) PlayerInfo[playerid][SpawnTimer] = SetTimerEx("MoveCamera", moving_speed, true, "i", playerid);
    PlayerInfo[playerid][SpawnDance] = false;
    SetPlayerTeamFromClass(playerid, classid);
    return 1;
}
Reply
#7

Now that I've done that, the spawns have messed up.

I have this:

pawn Код:
else if(CurrentMap == 1)
    {
        switch (gTeam[playerid])
        {
            case 0:
            {
                new Spawn = random(sizeof(MapTwoSpawnsTeam1));
                SetPlayerPos(playerid,MapTwoSpawnsTeam1[Spawn][0],MapTwoSpawnsTeam1[Spawn][1],MapTwoSpawnsTeam1[Spawn][2]);
                SetPlayerFacingAngle(playerid,MapTwoSpawnsTeam1[Spawn][4]);
            }
            case 1:
            {
                new Spawn = random(sizeof(MapTwoSpawnsTeam2));
                SetPlayerPos(playerid,MapTwoSpawnsTeam2[Spawn][0],MapTwoSpawnsTeam2[Spawn][1],MapTwoSpawnsTeam2[Spawn][2]);
                SetPlayerFacingAngle(playerid,MapTwoSpawnsTeam2[Spawn][4]);
            }
        }
    }
and now they both spawn in the same position..

Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)