IsPlayerConnect inside the dialog not work
#1

i have this inside the dialog but IsPlayerConnect not work

PHP код:
if(dialogid == DIALOG_F_PANEL3)
    {
        if(
response)
        {
            new 
idfp,fpsendername[25],giveplayer[25],fpstring[256];
            if(
sscanf(inputtext"ui"idfp)) return SCM(playerid,COLOR_WHITE,"{FF0000}Error:{FFFFFF} Syntaxa trebuie sa fie [ID] [ 0 - Fara Faction Punish 1 - Cu Faction Punish ] !");
            if(
PlayerInfo[id][pLeader] >= 1) return SCM(playerid,COLOR_WHITE,"{FFB870}Acest player este lider.");
            {
                if(
IsPlayerConnected(id))
                {
                                 
//code here
                                
}
                                else return 
SCM(playeridCOLOR_WHITE"This player is not connected.");

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)