String help - 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: String help (
/showthread.php?tid=201508)
String help -
oliverrud - 21.12.2010
Okay so I just started scripting again and for some reason I just suck balls enough to not get this simple dialog to work.
pawn Код:
ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"Character Selection","%s","Login","Cancel",AccountData[playerid][Char1]);
So heres the deal the dialog basically just shows: %s like ingame not the actual information coming from AccountData[playerid][Char1].
So what am I doing wrong?
Re: String help -
JaTochNietDan - 21.12.2010
ShowPlayerDialog doesn't have a formatting feature, you need to use
format. Although you don't seem to need it in this case, as all you're doing is putting a single string in there, so just put it in directly.
pawn Код:
ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"Character Selection",AccountData[playerid][Char1],"Login","Cancel");
Re: String help -
oliverrud - 21.12.2010
Oh yeah I forgot ah well thanks
Stupid me