SA-MP Forums Archive
Dialogs Not seem to be working - 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: Dialogs Not seem to be working (/showthread.php?tid=313065)



Dialogs Not seem to be working - spd_sahil - 24.01.2012

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    if(WarStart == 0)
    {
        SetPlayerTeamFromClass(playerid, classid);
    }
    if(WarStart == 1)
    {
       
        SendClientMessage(playerid,COLOR_ADMIN,"*** An Admin is Selecting Team for You");
        for(new i;i<MAX_PLAYERS;i++)
        {
            if(IsPlayerAdmin(i))
            {
                if(Team[i] == 3)
                {
                    new string[256];
                    format(string,sizeof(string),"~r~Dx\n~b~%s\n~w~Spectator",oppclan);
                    new pName[MAX_PLAYER_NAME];
                    GetPlayerName(playerid,pName,sizeof(pName));
                    new string2[256];
                    format(string,sizeof(string),"Select Team for %s",pName);
                    playerjoin = playerid;
                    ShowPlayerDialog(i,6,2,string2,string,"This One","Kick");
                }
            }
        }
    }
    return 1;
}
its a dialog for when a new player is requesting class.. and a war is going on.. the admin will decide what to do with the new player.. the new player gets the client message.. but i as an admin logged in rcon.. do not see the dialog


Re: Dialogs Not seem to be working - MP2 - 24.01.2012

Debug it.


Re: Dialogs Not seem to be working - spd_sahil - 24.01.2012

Quote:
Originally Posted by MP2
Посмотреть сообщение
Debug it.
mind explaining a bit ?? debug it how ?