CMD not respond
#1

CMD /rpquiz not respond , when typing /rpquiz , playerdialog not show

Sorry my bad english

This script
pawn Код:
CMD:rpquiz(playerid, params[])
{
    if (!IsPlayerInRangeOfPoint(playerid,2.0,361.8299,173.6017,1008.3828)) return SendClientMessageEx(playerid,COLOR_WHITE,"(( [INFO]: Kamu harus berada di dalam city hall ))");
    if(PlayerInfo[playerid][pSelesai] > 0)
    {
        new string[128];
        format(string, sizeof(string), "(( [INFO]: Kamu belum bisa RPQUIZ, tunggu %d detik lagi ))",PlayerInfo[playerid][pSelesai]);
        SendClientMessageEx(playerid, COLOR_YELLOW,string);
        return 1;
    }
    if(PlayerInfo[playerid][pRPquiz] == 0)
    {
        ShowPlayerDialog(playerid, RPQUIZ1, DIALOG_STYLE_LIST, "1.Apa itu MG ?", "Mata Gamers\nMinta Gamers\nMeta Gaming", "Ya", "Menyerah");
    }
    else
    {
        SendClientMessage(playerid, COLOR_GRAD1, "(( [INFO]: Kamu sudah menyelesaikan RPQUIZ! ))");
        return 1;
    }
    return 1;
}
Reply
#2

It looks the Dialog is fine, But make sure that the player which uses it have 0 RP Quiz.
Reply
#3

No , i try to new playername , but still the same
Reply
#4

When you do the command, What does exactly happend
Reply
#5

There is not anything, but i try edit to if(PlayerInfo[playerid][pRPquiz] == 1)

issue a message
(( [INFO]: Kamu sudah menyelesaikan RPQUIZ! ))
Reply
#6

Make sure when they take the test the variable is set to 0.

pawn Код:
PlayerInfo[playerid][pRPquiz] = 0;
Reply
#7

Quote:
Originally Posted by Death1300
Посмотреть сообщение
Make sure when they take the test the variable is set to 0.

pawn Код:
PlayerInfo[playerid][pRPquiz] = 0;
not helpful please help
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)