Will this work?
#1

Hello I need awnser from here since I dont want to disturb the other players if it dont work.. Anyway this is what I did
pawn Код:
PlayerInfo[playerid][pSex] = 2;
                    ShowPlayerDialog(playerid, 5014,DIALOG_STYLE_INPUT,"Ah","So you are a female.Well how old are you?","Select","Cancel");
                }
            }
        }
        if(dialogid == 5014)
        {
            if(response)
            {
                PlayerInfo[playerid][pAge] = age;
So will this work?
Reply
#2

Asuming that this is just a fragment or code and that brackets are well closed and all that, you should make a little change, as "age" variable doesn't seem to be declared:

pawn Код:
PlayerInfo[playerid][pSex] = 2;
                    ShowPlayerDialog(playerid, 5014,DIALOG_STYLE_INPUT,"Ah","So you are a female.Well how old are you?","Select","Cancel");
                }
            }
        }
        if(dialogid == 5014)
        {
            if(response)
            {
                PlayerInfo[playerid][pAge] = strval(inputtext);
Reply
#3

yea its all closed etc, ups i forgot that thanks for reminding me, but do i just do
pawn Код:
new age;
PlayerInfo[playerid][pAge] = age;
or do i have to do
pawn Код:
new age = strval(inputtext);
PlayerInfo[playerid][pAge] = age;
Reply
#4

Think. In first case you don't assign anything to age variable, so pAge will be empty (0 by default) as well.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)