How to put this as a string
#4

Change..
pawn Код:
new String[200];
        format(String, sizeof(String),""ccolor"Assault - "ccolor2"Rank 0 (%s)\n"ccolor"Sniper - "ccolor2"Rank 0 (%s)\n"ccolor"Pilot - "ccolor2"Rank 6 (%s)\n"ccolor"Engineer - "ccolor2"Rank 5 (%s)\n"ccolor"JetTrooper - "ccolor2"Rank 6 (%s)\n"ccolor"Support - "ccolor2"Rank 5 (%s)\n"ccolor"Scout - "ccolor2"Rank 5 (%s)\n"ccolor"Spy - "ccolor2"Rank 7 (%s)\n"ccolor"Donor - "ccolor2"For Donators only \n"ccolor"Civilian",AvailableSniper[playerid],AvailableAssault[playerid], AvailablePilot[playerid], AvailableJet[playerid] , AvailableEngineer[playerid], AvailableSupport[playerid], AvailableScout[playerid], AvailableSpy[playerid])
        ShowPlayerDialog(playerid, CLASS_DIALOG, DIALOG_STYLE_LIST, "Class Selection",String,"Select","Back");
To:
pawn Код:
new String[367];
        format(String, sizeof(String),"{FFFFFF}Assault - {FFF000}Rank 0 (%i)\n{FFFFFF}Sniper - {FFF000}Rank 0 (%i)\n{FFFFFF}Pilot - {FFF000}Rank 6 (%i)\n{FFFFFF}Engineer - {FFF000}Rank 5 (%i)\n{FFFFFF}JetTrooper - {FFF000}Rank 6 (%i)\n{FFFFFF}Support - {FFF000}Rank 5 (%i)\n{FFFFFF}Scout - {FFF000}Rank 5 (%i)\n{FFFFFF}Spy - {FFF000}Rank 7 (%i)\n{FFFFFF}Donor - {FFF000}For Donators only \n{FFFFFF}Civilian",AvailableAssault[playerid],AvailableSniper[playerid], AvailablePilot[playerid], AvailableEngineer[playerid], AvailableJet[playerid], AvailableSupport[playerid], AvailableScout[playerid], AvailableSpy[playerid]);
        ShowPlayerDialog(playerid, CLASS_DIALOG, DIALOG_STYLE_LIST, "Class Selection",String,"Select","Back");
instead of "color" and "color2" try using {FFFFFF}. FFFFFF = White. Have idea of ​​colors in http://www.efeitosespeciais.net/tabela.htm.

Only the numbering. Numbers 6. and put in the brackets { }.
For the format, https://sampwiki.blast.hk/wiki/Format
If you will read numbers never use %s only %i for integers and %d for decimal numbers.

Sorry for the english, I'm from Brazil. And I hope this help you.
Reply


Messages In This Thread
How to put this as a string - by Battlezone - 09.11.2013, 13:16
Re: How to put this as a string - by newbie scripter - 09.11.2013, 13:30
Re: How to put this as a string - by Battlezone - 09.11.2013, 13:33
Re: How to put this as a string - by iryston - 09.11.2013, 13:41
Re: How to put this as a string - by Battlezone - 09.11.2013, 13:44

Forum Jump:


Users browsing this thread: 2 Guest(s)