SA-MP Forums Archive
help plz argument type mismatch (argument 4) - 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)
+--- Thread: help plz argument type mismatch (argument 4) (/showthread.php?tid=651856)



help plz argument type mismatch (argument 4) - bagusapezst - 29.03.2018

if(listitem == 3)
{
ShowPlayerDialog(playerid, pToken, DIALOG_TOKEN, DIALOG_STYLE_INPUT, "Token", pToken[], "Kamu mempunyai Token:", "Simpan", "Batal");
}


Re: help plz argument type mismatch (argument 4) - AdamsLT - 29.03.2018

Well if you look up https://sampwiki.blast.hk/wiki/ShowPlayerDialog you see that arguments are in the wrong order.

PHP код:
ShowPlayerDialog(playeridDIALOG_TOKENDIALOG_STYLE_INPUT"Token""Kamu mempunyai Token:""Simpan""Batal"); 
Or similar. Not sure where to put pToken since I don't know what you intend to do and what it contains.
If it contains the token that a player has and you want to show it to the player, you should format a new string with all of the text there and pass it in place of "Kamu mempunyai..."


Re: help plz argument type mismatch (argument 4) - bagusapezst - 30.03.2018

thx rep+