String help
#1

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?
Reply
#2

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");
Reply
#3

Oh yeah I forgot ah well thanks Stupid me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)