SA-MP Forums Archive
How to handle PlayerName[playerid]? - 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: How to handle PlayerName[playerid]? (/showthread.php?tid=118513)



How to handle PlayerName[playerid]? - Battleman93 - 03.01.2010

How can i handle PlayerName[playerid] in a ShowPlayerDialog?

Now i have this:

ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"L ogin","You have recieved a ticket of %s \n press pay to pay or jail if you dont \n want to pay the ticket!",PlayerName[playerid],"Pay","Jail");


but i get an error by that line: warning 202: number of arguments does not match definition
Know anybody how to fix this?

Thx


Re: How to handle PlayerName[playerid]? - Deat_Itself - 03.01.2010

I doesnt know much about ShowPlayerDialog but add it after "Jail", PlayerName[playerid]);