Dialog Ain't responding.
#1

Well - The Dialog pops up. .But when I Try clicking on anything - No respond

Code :

PHP код:
        if(strcmp(cmd"/mycommand"true) == 0)
    {
        
GetPlayerName(playeridsendernamesizeof(sendername));
        for(new 
0sizeof(yo); i++)
        {
            if(
IsPlayerInRangeOfPoint(playerid2bla bla bla))
            {
                    
ShowPlayerDialog(playeridDIALOG_ID,   DIALOG_STYLE_LIST,"Itmes","The Items","Purchase","Cancel");
 
                    return 
1;
            }
        }
        
SendClientMessage(playerid,COLOR_WHITE,".:: Error : Just an error");
        return 
1;
    } 
PHP код:
    if(dialogid == DIALOG_ID)
    {
        if(
response)
        {
        if(
listitem == 0)
        {
            if(
PlayerInfo[playerid][myvar] >= 5)
            {
// my code
            
}
        }
        if(
listitem == 1)
        {
            if(
PlayerInfo[playerid][myvar] >= 20)
            {
// my code
            
}
        }
        if(
listitem == 2)
        {
            if(
PlayerInfo[playerid][myvar] >= 40)
            {
// my code
            
}
        }
        if(
listitem == 3)
        {
            if(
PlayerInfo[playerid][myvar]  >= 70)
            {
// my code
            
}
        }
        if(
listitem == 5)
        {
            if(
PlayerInfo[playerid][pmyvar] >= 100)
            {
// my code
            
}
        }
    }
    return 
1;

Help would be really Appreciated
Reply
#2

Are you sure your array [myvar] is bigger than or equal to 5? And about coordinations of IsPlayerInRangeOfPoint, and the last point can be.. increase your FLOAT value for a range in IsPlayerInRangeFunction.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)