SetPlayerTime
#1

Hey, i've got a little problem.

I had made a function to change name with Imput Dialog..
And it works.

But when i wants to Set Time with Dialog i've got errors.
[pawn]
if(listitem == 1)
{
ShowPlayerDialog(playerid, Time, DIALOG_STYLE_INPUT, "Set Time", "Choose your Time", "Ok", "Close");
}
[/pawn

pawn Код:
if(dialogid == Time)
    {
        if(response == 0)
        {
            SetPlayerTime(playerid,inputtext);
        }
    }
My error:

Error 035: argument type mismatch (argument 2)
1 Error.
Reply
#2

pawn Код:
SetPlayerTime(playerid,strval(inputtext));
Reply
#3

warning 202: number of arguments does not match definition

1 Warning.
Reply
#4

which line, the line that was modified?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)