HELP: How can i make bool like function???
#1

So I made HasPlayerAcceptedRace[MAX_PLAYERS]; and then i used is as bool gave true or false bu when i force it to change it doesnt!!!? here is code:
pawn Код:
if(dialogid == 4133)
    {
        if (!response) return SendClientMessage(playerid, 0xFFFFFFFF, "You Have Canceled The Invitation!");
        HasPlayerAcceptedRace[playerid] = 1;
        return 1;
    }
Reply
#2

bool:HasPlayerAcceptedRace[MAX_PLAYERS];

HasPlayerAcceptedRace[playerid] = false;
HasPlayerAcceptedRace[playerid] = true;
Reply
#3

Is my dialog response correct
Reply
#4

Hello,
Quote:
Originally Posted by vakhtang
Посмотреть сообщение
Is my dialog response correct
Код:
if(dialogid == 4133)
    {
        if (!response) return SendClientMessage(playerid, 0xFFFFFFFF, "You Have Canceled The Invitation!");
        }
        else
        {
        HasPlayerAcceptedRace[playerid] = 1;
        return 1;
    }
I think this is the right response.
Reply
#5

Thanks guys but somehow when i response by clicking the first button HasPlayerAcceptedRace[playerid] = true; doesnt work I dont know why this is happening can bool be changed?!
Reply
#6

Hello,
Explain what you mean.
Reply
#7

When player presses button 1 HasPlayerAcceptedRace[playerid] should become true but it somehow doesnt it stays false as in ongamemodeinit()
Reply
#8

Hello,
Post this with other new's
pawn Код:
new bool:HasPlayerAcceptedRace[MAX_PLAYERS] = false;
And
OnDialogRensponse
pawn Код:
if(dialogid == 4133)
    {
        if (!response) return HasPlayerAcceptedRace[playerid] == true);
        }
        else
        {
        HasPlayerAcceptedRace[playerid] == False;
        return 1;
    }
Reply
#9

HERE IS THE WHOLE FU*** CODE NOT WORKING AS SUSPECTED!!!!!!!!!!! http://pastebin.com/vjMaYtES
Reply
#10

Xelp me I need Xelp!!!!!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)