SA-MP Forums Archive
SetPlayerTime - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SetPlayerTime (/showthread.php?tid=136084)



SetPlayerTime - _soad_ - 23.03.2010

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.



Re: SetPlayerTime - MenaceX^ - 23.03.2010

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



Re: SetPlayerTime - _soad_ - 23.03.2010

warning 202: number of arguments does not match definition

1 Warning.



Re: SetPlayerTime - adsy - 23.03.2010

which line, the line that was modified?