ShowPlayerDialog() + format() problem
#5

thanks for the anwser Jantjuh but is the same ._. haha

yes ****** im using your library (which is amazing by the way)
****** forgive i dont understand how to use Text_DoNL (string []) this returns a string or somethig, or just call it?
on top of the script
pawn Код:
stock Text_DoNL(string[])
{
    for (new i = 0, j = strlen (string); i != j; ++i)
    {
        if (string[i] == '\\' && string[i + 1] == 'n') string[i] = '\r', string[i + 1] = '\n';
    }
}
pawn Код:
ShowPlayerDialog(playerid, WEAPSMENU, DIALOG_STYLE_LIST, Text_GetPlayerText("WEAPSINFO",playerid), Text_DoNL(Text_GetPlayerText("WEAPSSLOTS",playerid)), "Ok", "Esc");
its okay?? xd

----------------------------------------------------------------------------------
Edit works now, ignore this message haha thanks again ******
Reply


Messages In This Thread
ShowPlayerDialog() + format() problem [FIXED] - by [SOB]Chris - 16.05.2011, 17:46
Re: ShowPlayerDialog() + format() problem - by Jantjuh - 16.05.2011, 17:49
Re: ShowPlayerDialog() + format() problem - by [SOB]Chris - 16.05.2011, 18:08
Re: ShowPlayerDialog() + format() problem - by Jantjuh - 16.05.2011, 18:11
Re: ShowPlayerDialog() + format() problem - by [SOB]Chris - 16.05.2011, 18:28

Forum Jump:


Users browsing this thread: 2 Guest(s)